diff --git a/src/lib/core/iter.jsc b/src/lib/core/iter.jsc index 26539805..334817f7 100644 Binary files a/src/lib/core/iter.jsc and b/src/lib/core/iter.jsc differ diff --git a/src/lib/core/iter.jsr b/src/lib/core/iter.jsr index 4162a8bb..3cc44039 100644 --- a/src/lib/core/iter.jsr +++ b/src/lib/core/iter.jsr @@ -109,6 +109,10 @@ class Iterable return interleave(this, sep) end + fun repeat(n=0) + return repeat(this).take(n).flatten() if n != 0 else repeat(this).flatten() + end + fun sorted(comparator=null) return sorted(this, comparator) end