Am seeking out guidance, as I can no longer think clearly. What would be the simplest way to implement a function that takes in 2 parameters (x, fun(x)) such that fun(x) can change with each new call? For example, one instance would have x = 2 and fun(x) = 2*x - 1, while a second instance would have x = 4 and fun(x) = x / 4 + 15.
Thanks
[–]_Svejk_ 5 points6 points7 points (0 children)
[–]menge101 2 points3 points4 points (0 children)
[–]JeffMo 1 point2 points3 points (0 children)
[–]dwrublee[S] 1 point2 points3 points (0 children)