Skip to content

Instantly share code, notes, and snippets.

@keyle
Created December 21, 2011 07:13
Show Gist options
  • Save keyle/1505034 to your computer and use it in GitHub Desktop.
Save keyle/1505034 to your computer and use it in GitHub Desktop.
bullet 1
// declaring a function
// has a conditional in the return value
(flip val) = !val if (val == false) || null
// declaring a variable or function with no arguments
(b) = false
b = flip(b)
// b is now true
/****/
new val = !val if (val == false) || null
// declaring a variable or function with no arguments
new b = false
b = flip(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment