string_map


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.

Examples:


string_map(char_downcase, "HELLO")
// hello

string_map(^(a, b) if (char_is_upper_case(a)) a else b, "HeLlO", "wOrLd")
// HOLLO
      

Also see:

string_for_each
map


Core Module Index | Contents