Created
December 23, 2013 15:28
-
-
Save WayneCui/8098962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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