RosettaCodeData/Task/Higher-order-functions/SuperCollider/higher-order-functions.sc

3 lines
124 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
f = { |x, y| x.(y) }; // a function that takes a function and calls it with an argument
f.({ |x| x + 1 }, 5); // returns 5