This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
RosettaCodeData
/
Task
/
Apply-a-callback-to-an-array
/
UNIX-Shell
/
apply-a-callback-to-an-arra...
8 lines
104 B
Bash
Raw
Permalink
Blame
History
map
(
)
{
map_command
=
$1
shift
for
i
do
"
$map_command
"
"
$i
"
;
done
}
list
=
1:2:3
(
IFS
=
:
;
map
echo
$list
)
Reference in New Issue
View Git Blame
Copy Permalink