Functional

compose


(let compose (fun (_f _g) (...))) Compose function calls

Author: @rstefanic

Parameters

Example

(let foo (fun (a) (* a a)))
(let bar (fun (b) (+ b b)))
(let composed (compose foo bar))
(print (composed 12))  # return value is (12 + 12) * (12 + 12)

left


(let left (fun (_x) (...))) Take a value as its argument and return a function taking 2 arguments which will call the first function on the value