Apply a callback to an array: Difference between revisions

Content added Content deleted
imported>Tromp
(map in BLC)
Line 443: Line 443:
=={{header|Binary Lambda Calculus}}==
=={{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:
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:
<syntaxhighlight>010001101000000101100000000001011000000101111111010110010111111101111110111010</syntaxhighlight>
<pre>010001101000000101100000000001011000000101111111010110010111111101111110111010</pre>


=={{header|BQN}}==
=={{header|BQN}}==