Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2010.08
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.452 kb
augment class Parcel does Positional {
method Str() { self.flat.Str }
method elems() { self.flat.elems }
# Need this method here to avoid ResizablePMCArray.sort from Parrot.
method sort(&by = &infix:<cmp>) { self.list.sort(&by) }
method at_pos($pos) { self.flat.[$pos] }
multi method ACCEPTS($x) {
self.elems == 0
?? $x.notdef || ($x ~~ Positional && $x == 0)
!! self.Seq.ACCEPTS($x)
}
}
Jump to Line
Something went wrong with that request. Please try again.