The chrs routine

Combined from primary sources listed below.

In class Nil ( Type/Nil )§

See primary docmentation in context for method chrs.

method chrs§

Will return \0, and also throw a warning.

In class Cool ( Type/Cool )§

See primary docmentation in context for routine chrs.

routine chrs§

sub chrs(*@codepoints --> Str:D)
method chrs()

Coerces the invocant (or in the sub form, the argument list) to a list of integers, and returns the string created by interpreting each integer as a Unicode codepoint, and joining the characters.

say <67 97 109 101 108 105 97>.chrs;   # OUTPUT: «Camelia␤»

This is the list-input version of chr. The inverse operation is ords.