How can I run a list of functions on an input?

q) ({2*x};{3*x})

How can I apply the list of functions to an input, e.g. 4, something like:

({2*x};{3*x})[4]
8 12

>Solution :

You should be able to use index at (@) each left (:)

({2*x};{3*x})@\:4

Leave a Reply