Skip to content

Instantly share code, notes, and snippets.

@WayneCui
Created December 23, 2013 15:28
Show Gist options
  • Save WayneCui/8098962 to your computer and use it in GitHub Desktop.
Save WayneCui/8098962 to your computer and use it in GitHub Desktop.
REBOL []
blk: [a b c d]
indexes: [1 3]
result: collect [
foreach index indexes [
keep blk/:index
]
]
probe result
map-each index indexes [ blk/:index ]
map-each x [[1 2 3] [4 6 5] [7 8 9]] [apply :reduce [first maximum-of x]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment