18 lines
370 B
Plaintext
18 lines
370 B
Plaintext
:sig
|
|
template<typename F> StringList StringList::map(F f) const
|
|
|
|
:params
|
|
f : mapper called with each String
|
|
return value : new list of mapped strings
|
|
|
|
:see
|
|
0_StringList
|
|
2_StringList_filter
|
|
|
|
:content
|
|
Returns a new `StringList` containing the mapper result for each item, in the same order.
|
|
|
|
```cpp
|
|
StringList upper = names.map([](String s) { return(to_upper(s)); });
|
|
```
|