RosettaCodeData/Task/Higher-order-functions/PowerShell/higher-order-functions-1.ps1

7 lines
77 B
PowerShell
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
function f ($y) {
$y*$y
}
function g (${function:f}, $y) {
(f $y)
}