Skip to content

Commit

Permalink
added .fmt method to Iterator.pm so that fmt can take Iterators of an…
Browse files Browse the repository at this point in the history
…y form.

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
s-h-r-i authored and moritz committed May 24, 2010
1 parent a4d3266 commit 49b2c13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Iterator.pm
Expand Up @@ -27,4 +27,7 @@ augment class Iterator {
multi method sort(&by = &infix:<cmp>) {
self.Seq.sort(&by);
}
multi method fmt($format='%s', $separator=' ') {
self.Seq.fmt($format,$separator);
}
}

0 comments on commit 49b2c13

Please sign in to comment.