Skip to content

Instantly share code, notes, and snippets.

@yorickpeterse
Created January 12, 2016 15:01
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 yorickpeterse/596218fecb6911f4a974 to your computer and use it in GitHub Desktop.
Save yorickpeterse/596218fecb6911f4a974 to your computer and use it in GitHub Desktop.
let numbers = [10, 20, 30]
numbers.each (number) {
(number > 10).if_true {
STDOUT.print(number)
}
}
let numbers = [10, 20, 30]
numbers.each (number):
(number > 10).if_true:
STDOUT.print(number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment