Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 18 lines (15 sloc) 0.484 kB
ab08e61 @jnthn Move array and hash and dependencies partially into the BOOTSTRAP, so…
jnthn authored
1 my class Iterable {
602c0af @pmichaud Some additional Range methods.
pmichaud authored
2 method elems() { self.list.elems }
dac61a3 @pmichaud First pass at handling infinities in lists and ranges.
pmichaud authored
3 method infinite() { Mu }
ba6af41 @pmichaud First cut at an implementation of 'gist' (from specs commit 669e0dd).
pmichaud authored
4 method item($self:) { $self }
e3a2fd7 @jnthn Make (1..10).fmt(...) work again; masak++ for noting it.
jnthn authored
5
6 method fmt($format = '%s', $separator = ' ') {
7 self.list.fmt($format, $separator)
8 }
602c0af @pmichaud Some additional Range methods.
pmichaud authored
9
10 method Int() { self.elems }
11 method Num() { self.elems.Num }
120d3be @pmichaud Make sure .Numeric is properly multied.
pmichaud authored
12 multi method Numeric(Iterable:D:) { self.elems }
13 multi method Str(Iterable:D:) { self.list.Str }
69136a4 @moritz implement chrs
moritz authored
14 method chrs(Iterable:D:) {
15 self>>.chr.join;
16 }
e9d014b @pmichaud Stub in Iterable and Parcel, initial infix:<,> implementation.
pmichaud authored
17 }
Something went wrong with that request. Please try again.