Apply a callback to an array: Difference between revisions

imported>Tromp
(map in BLC)
(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:
<syntaxhighlightpre>010001101000000101100000000001011000000101111111010110010111111101111110111010</syntaxhighlightpre>
 
=={{header|BQN}}==
Line 1,966:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">writeln map ffn{^2}, 1..10</syntaxhighlight>
 
{{out}}
885

edits