RosettaCodeData/Task/Function-composition/Lambdatalk/function-composition.lambda...

17 lines
203 B
Plaintext

{def compose
{lambda {:f :g :x}
{:f {:g :x}}}}
-> compose
{def funcA {lambda {:x} {* :x 10}}}
-> funcA
{def funcB {lambda {:x} {+ :x 5}}}
-> funcB
{def f {compose funcA funcB}}
-> f
{{f} 3}
-> 80