Apply a callback to an array: Difference between revisions
→{{header|langur}}
imported>Tromp (map in BLC) |
Langurmonkey (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 443:
=={{header|Binary Lambda Calculus}}==
In the lambda calculus, we can map over a list as in https://github.com/tromp/AIT/blob/master/lists/map.lam, which gives the following BLC program to negate every bit of input:
<
=={{header|BQN}}==
Line 1,966:
=={{header|langur}}==
<syntaxhighlight lang="langur">writeln map
{{out}}
|