Power Tools: Anonymous Functions, List.map & the Pipe Operator
10 min · OCaml
Write inline functions, transform lists with List.map/List.filter, and chain steps with |>.
OCaml · Power Tools: Anonymous Functions, List.map & the Pipe Operator0/5 cleared
Enemy 1 of 5
An anonymous function is written fun params -> body. Bind it with let just like a named function.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 36