Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When stringifying or numifying Range, just ask $.iterator directly
without going through Seq (i.e., let $.iterator do it).
  • Loading branch information
pmichaud committed Feb 16, 2010
1 parent 5594188 commit 9d1d903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Range.pm
Expand Up @@ -64,11 +64,11 @@ class Range is Iterable {
}

our Str multi method Str() {
$.iterator.join(" ");
$.iterator.Str;
}

our multi method Num() {
$.iterator.Seq.elems;
$.iterator.elems;
}
}

Expand Down

0 comments on commit 9d1d903

Please sign in to comment.