RosettaCodeData/Task/Currying/PowerShell/currying-1.psh

2 lines
73 B
Plaintext

function Add($x) { return { param($y) return $y + $x }.GetNewClosure() }