docs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
: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)); });
|
||||
```
|
||||
Reference in New Issue
Block a user