diff options
| author | Tyge Løvset <[email protected]> | 2022-06-17 18:04:37 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-17 18:04:37 +0200 |
| commit | 755bcee8a97b2912d047895d37f5b60672486144 (patch) | |
| tree | 86f662acd342394601984ff8e13f61a803c5275b /docs | |
| parent | fb39cd5db944d13b6de110885081e483234b453f (diff) | |
| download | STC-modified-755bcee8a97b2912d047895d37f5b60672486144.tar.gz STC-modified-755bcee8a97b2912d047895d37f5b60672486144.zip | |
Various refactoring. Renamed c_apply_arr() => c_apply_array()
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index 9d2baea6..82431d95 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -167,7 +167,7 @@ c_forrange (i, int, 30, 0, -5) printf(" %d", i); // 30 25 20 15 10 5 ``` -### c_apply, c_apply_arr, c_pair, c_find_if, c_find_it +### c_apply, c_apply_array, c_pair, c_find_if, c_find_it **c_apply** applies an expression on a container with each of the elements in the given array: ```c // apply multiple push_backs @@ -177,7 +177,7 @@ c_apply(v, cvec_i_push_back(&vec, v), int, {1, 2, 3}); c_apply(v, cmap_i_insert(&map, c_pair(v)), cmap_i_raw, { {4, 5}, {6, 7} }); int arr[] = {1, 2, 3}; -c_apply_arr(v, cvec_i_push_back(&vec, v), int, arr, c_arraylen(arr)); +c_apply_array(v, cvec_i_push_back(&vec, v), int, arr, c_arraylen(arr)); ``` **c_find_if**, **c_find_in** searches linearily in containers using a predicate ``` |
