cleanup, docs
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
:title
|
||||
0_StringList
|
||||
|
||||
:sig
|
||||
0_StringList
|
||||
struct StringList — ordered list of String values
|
||||
|
||||
:params
|
||||
return value : use methods such as `filter()`, `map()`, `keys()`, `each()`, `unique()`, `sort()`, `some()`, `every()`, and `find()` to derive or inspect lists
|
||||
|
||||
:content
|
||||
`StringList` is an ordered container of `String` values. It inherits normal `std::vector<String>` behavior and adds list helpers for filtering, mapping, indexes, iteration, deduplication, sorting, and predicate checks.
|
||||
|
||||
:example
|
||||
StringList labels = split("a,b,a", ",").unique().map([](String item) { return(to_upper(item)); });
|
||||
print(join(labels, ","), "\n");
|
||||
|
||||
:see
|
||||
>types
|
||||
@@ -13,12 +20,8 @@ join
|
||||
2_StringList_map
|
||||
2_StringList_keys
|
||||
2_StringList_each
|
||||
|
||||
:content
|
||||
Sequential container of `String` values. It inherits normal `std::vector<String>` behavior and adds collection helpers for filtering, mapping, indexes, and iteration.
|
||||
|
||||
```cpp
|
||||
StringList labels = split("a,b,c", ",").map([](String s) { return(to_upper(s)); });
|
||||
```
|
||||
|
||||
See the method pages for details.
|
||||
2_StringList_unique
|
||||
2_StringList_sort
|
||||
2_StringList_some
|
||||
2_StringList_every
|
||||
2_StringList_find
|
||||
|
||||
Reference in New Issue
Block a user