import * as iter from "https://deno.land/x/iter@v3.2.3/lib/reducers.ts";
Functions
Finds the average of all items in | |
Determines whether the specified callback function returns true for all items in an iterable. | |
f find | Returns the value of the first item in the iterable where predicate is true, and undefined otherwise. |
Returns the index of the first item in the iterable where predicate is true, and -1 otherwise. | |
Determines whether an iterable includes a certain element, returning true or false as appropriate. | |
f norm | Finds the norm of |
Finds the product of all items in | |
Calls the specified callback function for all the items in an iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | |
f some | Determines whether the specified callback function returns true for any item in an iterable. |
f sum | Finds the sum of all items in |
Interfaces
reduce | | |
reduce | |