Skip to content

Instantly share code, notes, and snippets.

@bankair
Created August 13, 2015 15:44
Show Gist options
  • Select an option

  • Save bankair/1f10185d25cab1042541 to your computer and use it in GitHub Desktop.

Select an option

Save bankair/1f10185d25cab1042541 to your computer and use it in GitHub Desktop.
ADD2 = ->(a) { a + 2 }
DIV3 = ->(a) { a / 3 }
(ADD2 + DIV3).call(4)
# == 3
(DIV3 + ADD2).call(4)
# == 2
# Note: the order is important here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment