From e4bc2f103d75895aa64829c575082d7014258799 Mon Sep 17 00:00:00 2001 From: Christopher Bertels Date: Mon, 18 Jun 2012 16:52:17 +0200 Subject: [PATCH] Handle Fancy::NextIteration in Tuple#each: --- lib/tuple.fy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/tuple.fy b/lib/tuple.fy index 15cd144b..ca14a45e 100644 --- a/lib/tuple.fy +++ b/lib/tuple.fy @@ -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 {