|
| static function | accumulate (local t, local iter, local init, local op) |
| | 数值运算 More...
|
| |
| static function | adjacent_difference (local t, local iter, local dst, local op) |
| |
| static function | all_of (local t, local iter, local op) |
| | 不修改序列的操作 More...
|
| |
| static function | any_of (local t, local iter, local op) |
| |
| static function | bind (local f, local ...) |
| |
| static function | catch (local e) |
| |
| static function | clamp (local v, local lo, local hi, local op) |
| |
| static function | copy (local t, local iter, local dst) |
| | 修改序列的操作 More...
|
| |
| static function | copy_if (local t, local iter, local op, local dst) |
| |
| static function | count (local t, local iter, local val) |
| |
| static function | count_if (local t, local iter, local op) |
| |
| static function | fill (local t, local iter, local val) |
| |
| static function | fill_n (local t, local iter, local n, local val) |
| |
| static function | finally (local block) |
| |
| static function | find (local t, local iter, local val) |
| |
| static function | find_first_of (local t1, local itre1, local t2, local iter2, local op) |
| |
| static function | find_if (local t, local iter, local op) |
| |
| static function | find_if_not (local t, local iter, local op) |
| |
| static function | for_each (local t, local iter, local op) |
| |
| static function | for_each_n (local t, local iter, local n, local op) |
| |
| static function | generate (local t, local iter, local f) |
| |
| static function | generate_n (local t, local iter, local n, local f) |
| |
| static function | handler (local f, local obj) |
| |
| static function | inner_product (local t1, local t2, local v0, local op1, local op2) |
| |
| static function | is_callable (local f) |
| |
| static function | is_const (local v) |
| |
| static function | make_const (local v) |
| |
| static function | make_once (local f) |
| |
| static function | max_element (local t, local op) |
| | 最小/最大操作 More...
|
| |
| static function | min_element (local t, local op) |
| |
| static function | minmax_element (local t, local op) |
| |
| static function | mismatch (local t1, local iter1, local t2, local iter2, local op) |
| |
| static function | none_of (local t, local iter, local op) |
| |
| static function | random_shuffle (local t, local r) |
| |
| static function | remove (local t, local iter, local val) |
| |
| static function | remove_if (local t, local iter, local op) |
| |
| static function | replace (local t, local iter, local val, local newval) |
| |
| static function | replace_if (local t, local iter, local op, local newval) |
| |
| static function | search (local t1, local iter1, local t2, local iter2, local op) |
| |
| static function | switch (local val, local cases) |
| |
| static function | transform (local t, local iter, local f, local dst) |
| |
| static function | try (local block) |
| |
| static function | unconst (local v) |
| |
| static function | unique (local t, local op) |
| |
| static function | unique_copy (local t, local dst, local op) |
| |
| static function | unusing (local name) |
| |
| static function | using (local name) |
| |
| static function | with (local t, local f) |
| |
oparators
comparators
table<string,fun(a:any,b:any):boolean>
You can use following keys to get a comparator:
>### '==' '>=' '<=' '~=' '>' '<'
You can add '#' to the front of the key to compare length,
or add 'f' and give a function to compare result of the function.
Example:
>‘f1 = Function.comparator[’>=']`
>f2 = Function.comparator['f>='](f)