Skip to content

Instantly share code, notes, and snippets.

@apmckinlay
Last active November 23, 2017 18:38
Show Gist options
  • Save apmckinlay/24accd8929ae470b2456680a4512b14b to your computer and use it in GitHub Desktop.
Save apmckinlay/24accd8929ae470b2456680a4512b14b to your computer and use it in GitHub Desktop.
Suneido Curry function
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