string_map(fn, s1, @rest, ...)
The function fn
is called for each character in the strings
s1, ...
and produce a result character. String_map
will return a list with
all these characters.
Fn
should accept as many arguments as there are strings.
string_map(char_downcase, "HELLO")
// hello
string_map(^(a, b) if (char_is_upper_case(a)) a else b, "HeLlO", "wOrLd")
// HOLLO