M
Martin DeMello
A bit of a wild idea, but how about syntactic support for accumulating
the results of multiple calls to yield?
a = []
(1..10).step(2) {|i|
...
a << retval
}
could become
a = (1..10).step(2) [|i| ...]
martin
the results of multiple calls to yield?
a = []
(1..10).step(2) {|i|
...
a << retval
}
could become
a = (1..10).step(2) [|i| ...]
martin