RosettaCodeData/Task/Function-composition/SuperCollider/function-composition.sc

5 lines
72 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
f = { |x| x + 1 };
g = { |x| x * 2 };
h = g <> f;
h.(8); // returns 18