Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 484 Bytes
my class Iterable {
method elems() { self.list.elems }
method infinite() { Mu }
method item($self:) { $self }
method fmt($format = '%s', $separator = ' ') {
self.list.fmt($format, $separator)
}
method Int() { self.elems }
method Num() { self.elems.Num }
multi method Numeric(Iterable:D:) { self.elems }
multi method Str(Iterable:D:) { self.list.Str }
method chrs(Iterable:D:) {
self>>.chr.join;
}
}
Jump to Line
Something went wrong with that request. Please try again.