Apply a callback to an array: Difference between revisions
→BQN: add
m (→{{header|Wren}}: Changed to Wren S/H) |
(→BQN: add) |
||
Line 440:
2.23606798
</pre>
=={{header|BQN}}==
<syntaxhighlight lang="bqn">Square ← ט
array ← 2‿3‿5‿7‿11‿13
Square¨ array</syntaxhighlight>
The use of the ¨ modifier is the general approach, but actually not necessary with arithmetic functions.
{{out}}
<pre>⟨ 4 9 25 49 121 169 ⟩</pre>
=={{header|Bracmat}}==
|