cleanup, docs
This commit is contained in:
@@ -2,15 +2,18 @@
|
||||
template<typename F> void StringList::each(F f) const
|
||||
|
||||
:params
|
||||
f : callback called with each String
|
||||
f : callback called with each string
|
||||
return value : none
|
||||
|
||||
:see
|
||||
0_StringList
|
||||
|
||||
:content
|
||||
Calls the callback once for each string in order.
|
||||
Calls the callback once for each string in order. Use it when you want side effects such as building output or accumulating a separate value.
|
||||
|
||||
```cpp
|
||||
:example
|
||||
StringList items = split("a,b,c", ",");
|
||||
items.each([](String item) { print(item, "\n"); });
|
||||
```
|
||||
|
||||
:see
|
||||
>types
|
||||
0_StringList
|
||||
2_StringList_map
|
||||
2_StringList_keys
|
||||
|
||||
Reference in New Issue
Block a user