First-class functions
Here we use the Z
("zipwith") metaoperator to zip the š“ and šµ lists with builtin composition operator, ā
(or just o
). The .()
construct invokes the function contained in the $_
(current topic) variable.
Output:
It is not clear why we don't get exactly 0.5, here.
Operators, both builtin and user-defined, are first class too.
Output:
Last updated