Skip to content

Instantly share code, notes, and snippets.

@inimino
Forked from ELLIOTTCABLE/gist:479309
Created July 17, 2010 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inimino/479311 to your computer and use it in GitHub Desktop.
Save inimino/479311 to your computer and use it in GitHub Desktop.
Inimino’s way:
foo = routine {
if argument == 1, return ‘a’
if argument == 2, return ‘b’
if argument == 3, return ‘c’
}
foo' = routine {
if argument == 2, return 'Changed'
else return foo(argument)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment