Documentation for method uniprop

Documentation for method uniprop, assembled from the following types:

class Cool

From Cool

(Cool) method uniprop

Defined as:

multi sub uniprop(Str(Cool), |c)
multi sub uniprop(Int:D $codeStringy:D $propname)
multi sub uniprop(Str$codeStringy:D $propname)
multi method uniprop(|c)

Interprets the invocant as a Str, and returns the unicode property of the first character. If no property is specified returns the General Category. Returns a Bool for Boolean properties.

say 'a'.uniprop;               # OUTPUT: «Ll␤» 
say '1'.uniprop;               # OUTPUT: «Nd␤» 
say 'a'.uniprop('Alphabetic'); # OUTPUT: «True␤» 
say '1'.uniprop('Alphabetic'); # OUTPUT: «False␤»