Construct the string consisting of n
copies of the character c
.
Instances For
String.mapTokens c f s
tokenizes s : string
on c : char
, maps f
over each token, and
then reassembles the string by intercalating the separator token c
over the mapped tokens.
Instances For
Produce the head character from the string s
, if s
is not empty, otherwise 'A'
.