In Perl 6 you get list length using `elems`. E.g. for a string: > "A".elems 1 > "string".elems 1 > "".elems 1
-
-
Replying to @qntm
This happens because in Perl 6 a string is also a single-element list containing the string. > "string"[0][0][0][0]0[0] string
4 replies 2 retweets 4 likes -
Replying to @qntm
The documentation for Str.length http://doc.perl6.org/type/Str#method_length … says "See `chars` or `elems`." I'm going to say you probably want `chars`
1 reply 0 retweets 2 likes
The string length method isn't `length` is because there's more than one way to define it. For example, it could always be 1
11:55 AM - 29 Nov 2015
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.