class utf8 does Blob[uint8] is repr('VMArray') {}
A utf8
is a subtype of Blob which is specifically uint8 data for holding UTF-8
encoded text.
my utf8 $b = "hello".encode;
say $b[1].fmt("0x%X"); # OUTPUT: ยซ0x65โคยป
See Also
class Bag
Immutable collection of distinct objects with integer weights
class BagHash
Mutable collection of distinct objects with integer weights
class Hash
Mapping from strings to itemized values
class Map
Immutable mapping from strings to values
class Mix
Immutable collection of distinct objects with Real weights
class MixHash
Mutable collection of distinct objects with Real weights
class NFC
Codepoint string in Normal Form C (composed)
class NFD
Codepoint string in Normal Form D (decomposed)
class NFKC
Codepoint string in Normal Form KC (compatibility composed)
class NFKD
Codepoint string in Normal Form KD (compatibility decomposed)
class Seq
An iterable, potentially lazy sequence of values
class Set
Immutable collection of distinct objects
class Slip
A kind of List that automatically flattens into an outer container
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.