Skip to content

Instantly share code, notes, and snippets.

@koher
Created June 23, 2015 02:16
Show Gist options
  • Save koher/c8db7b243e2ad347a165 to your computer and use it in GitHub Desktop.
Save koher/c8db7b243e2ad347a165 to your computer and use it in GitHub Desktop.
Higher-oder functions/methods vs Control statements
a.map { b in
b.map { c in {
foo(b, c)
}
}
for b in a {
for c in b {
foo(b, c)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment