decorator
Decorator / Higher-Order Function Patterns
Functions
| Function | Description |
|---|---|
apply1 | |
apply2 | |
fold | |
map_arr | |
filter_arr | |
for_each | |
find_idx | |
all_of | |
any_of | |
count_of | |
retry_call | |
pipeline | |
tabulate | |
zip_with |
Details
apply1
fn apply1(f: i64, x: i64) -> i64apply2
fn apply2(f: i64, x: i64, y: i64) -> i64fold
fn fold(f: i64, arr: &i64, len: i64, init: i64) -> i64map_arr
fn map_arr(f: i64, arr: &i64, len: i64, out: &i64) -> i64filter_arr
fn filter_arr(f: i64, arr: &i64, len: i64, out: &i64) -> i64for_each
fn for_each(f: i64, arr: &i64, len: i64) -> i64find_idx
fn find_idx(f: i64, arr: &i64, len: i64) -> i64all_of
fn all_of(f: i64, arr: &i64, len: i64) -> i64any_of
fn any_of(f: i64, arr: &i64, len: i64) -> i64count_of
fn count_of(f: i64, arr: &i64, len: i64) -> i64retry_call
fn retry_call(f: i64, arg: i64, max_attempts: i64) -> i64pipeline
fn pipeline(fns: &i64, nfns: i64, initial: i64) -> i64tabulate
fn tabulate(f: i64, out: &i64, n: i64) -> i64zip_with
fn zip_with(f: i64, xs: &i64, ys: &i64, len: i64, out: &i64) -> i64