This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Apply-a-callback-to-an-array
/
PowerShell
/
apply-a-callback-to-an-array-2.psh
5 lines
98 B
Text
Raw
Permalink
Normal View
History
Unescape
Escape
langs a-z
2013-04-10 22:43:41 -07:00
function map ([array] $a, [scriptblock] $s) {
$a | ForEach-Object $s
}
Family Day update
2020-02-17 23:21:07 -08:00
map (1..5) { $_ * $_ }
Reference in a new issue
Copy permalink