Skip to content

Commit

Permalink
Handle Fancy::NextIteration in Tuple#each:
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Jun 18, 2012
1 parent ae0d6c9 commit e4bc2f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/tuple.fy
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ class Tuple {
"""

size times: |i| {
block call: [at: i]
try {
block call: [at: i]
} catch Fancy NextIteration {}
}
self

return self
}

def reverse_each: block {
Expand Down

0 comments on commit e4bc2f1

Please sign in to comment.