RosettaCodeData/Task/Function-composition/AntLang/function-composition.antlang

5 lines
144 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
/Apply g to exactly one argument
compose1: {f: x; g: y; {f[g[x]]}}
/Extra: apply to multiple arguments
compose: {f: x; g: y; {f[g apply args]}}