Skip to content

Commit

Permalink
Implement Uni.Bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent c7da6ce commit 7b5d9a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Uni.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ my class Uni does Positional[uint32] does Stringy is repr('VMArray') is array_ty
nqp::strfromcodes(self)
}

multi method Bool(Uni:D:) {
nqp::p6bool(nqp::elems(self));
}

method codes(Uni:D:) { nqp::elems(self) }
method elems(Uni:D:) { nqp::elems(self) }
method Numeric(Uni:D:) { nqp::elems(self) }
Expand Down

0 comments on commit 7b5d9a7

Please sign in to comment.