Partial function application
Last updated
Was this helpful?
Last updated
Was this helpful?
Midio functions can take other functions as input by using the top-right socket as illustrated bellow. The function can be used to call functions passed as input.
When the function being used as input has any inputs set, like the Math Add
function above, which has its first
input set to 123
, the function acts as a .
This means the Math Add
function above now only takes one input instead of two. This input can either be supplied as an object with the input name as a key, as we do above, or as a list with only one input, like we show below.
Partial function application can be very useful in situations when you needs to be able to which captures certain data which is only available outside the function.
Partial function application can act as a limited kind of in those circumstances.