Skip to content

Commit

Permalink
change the return type constraint to Seq:D for ords()
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Aug 20, 2015
1 parent 0d2f911 commit 5679420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -1744,7 +1744,7 @@ multi sub infix:«~<»(str $a, int $b) {
X::NYI.new(feature => "infix:«~<»").throw;
}

multi sub ords(Str $s) returns List:D {
multi sub ords(Str $s) returns Seq:D {
my Int $c = $s.chars;
my str $ns = nqp::unbox_s($s);
(^$c).map: { nqp::p6box_i(nqp::ord(nqp::substr($ns, $_, 1))) }
Expand Down

0 comments on commit 5679420

Please sign in to comment.