Last active
November 23, 2017 18:38
-
-
Save apmckinlay/24accd8929ae470b2456680a4512b14b to your computer and use it in GitHub Desktop.
Suneido Curry function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (@args) | |
{ | |
helper = class | |
{ | |
New(.args) | |
{ } | |
Call(@args2) | |
{ | |
args = .args | |
if not args2.Empty?() | |
args = args.Copy().Append(args2) | |
return (args[0])(@+1 args) | |
} | |
} | |
return helper(args) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment