16 lines
203 B
Text
16 lines
203 B
Text
{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
|