routine codes
| 1 | class Uni | 
| 1.1 | (Uni) method codes | 
| 2 | class Cool | 
| 2.1 | (Cool) routine codes | 
Documentation for routine codes assembled from the following types:
class Uni
From Uni
(Uni) method codes
method codes(Uni: --> Int)
Returns the number of codepoints in the invocant.
class Cool
From Cool
(Cool) routine codes
Defined as:
sub codes(Str(Cool))method codes()
Coerces the invocant (or in sub form, its argument) to Str, and returns the number of Unicode code points.
say 'møp'.codes; # OUTPUT: «3»
The same result will be obtained with
say +'møp'.ords; # OUTPUT: «3»
ords first obtains the actual codepoints, so there might be a difference in speed.