Signature
StringList map(StringList items, functionf) vector map(vector items, function f)
Parameters
items : list of items to transform
f : a function that returns the transformed value for each item
return value : a new list containing the transformed values
Returns a new list by calling f for each item in items.
Use filter() when you want to keep only matching items, and map() when you want to transform each item.
Example
StringList names = split("ada,grace", ",");
StringList upper = map(names, [](String item) { return(to_upper(item)); });
print(join(upper, ","), "\n");
Output
ADA,GRACE