Documentation for routine chrs
assembled from the following pages:
Class: Nil §
From Nil
(Nil) method chrs §
Will return \0
, and also throw a warning.
Class: Cool §
From Cool
(Cool) routine chrs §
Defined as:
sub chrs(* --> Str)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.