Skip to content

Instantly share code, notes, and snippets.

@gbissett
Created May 5, 2011 14:38
Show Gist options
  • Save gbissett/957154 to your computer and use it in GitHub Desktop.
Save gbissett/957154 to your computer and use it in GitHub Desktop.
In ruby 1.9, you may see this:
->
This combination of hyphen and right-pointy-bracket is sometimes referred to as a "stabby lambda".
Its correct name is actually a "foie gras".
(o)< # a duck!
>(o) # also a duck
>(x) # this duck is not well
->(o) # this is how they make foie gras
->(x) # the tube makes the duck unwell
Foie gras. QED.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment