Skip to content

Commit

Permalink
Implement Seq.Bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 28, 2010
1 parent 7ef1ac2 commit d42198a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Seq.pm
Expand Up @@ -5,6 +5,10 @@ augment class Seq {
pir::join(' ', self!fill);
}

multi method Bool() {
self!fill(1) ?? Bool::True !! Bool::False;
}

multi method sort(&by = &infix:<cmp>) {
# Parrot already provides a sort method that works on
# ResizablePMCArray, so we aim to make use of that here.
Expand Down

0 comments on commit d42198a

Please sign in to comment.