Permalink
Browse files

Handle Fancy::NextIteration in Tuple#each:

  • Loading branch information...
1 parent ae0d6c9 commit e4bc2f103d75895aa64829c575082d7014258799 @bakkdoor committed Jun 18, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/tuple.fy
View
@@ -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 {

0 comments on commit e4bc2f1

Please sign in to comment.