Apply a callback to an array: Difference between revisions
→{{header|Phixmonti}}
m (→{{header|Picat}}: Added trans tag) |
|||
Line 2,407:
=={{header|Phixmonti}}==
<lang Phixmonti>/# Rosetta Code problem: http://rosettacode.org/wiki/Apply_a_callback_to_an_array
by Galileo, 05/2022 #/
include ..\Utilitys.pmt
def add1▼
1 +
enddef
Line 2,424 ⟶ 2,420:
enddef
( 1 2 3 ) dup
getid square map
{{out}}
<pre>
[[2, 3, 4], [1, 4, 9]]
▲nl</lang>
=== Press any key to exit ===</pre>
=={{header|PHP}}==
|