@array-like/reduce
v0.0.1
Published
ArrayLike reducers for JavaScript
Downloads
63
Readme
:bowl_with_spoon: @array-like/reduce
ArrayLike reducers for JavaScript. See docs.
import {shuffle} from '@randomized/random';
import {_calloc} from '@array-like/alloc'
import {iota} from '@array-like/fill';
import {max} from '@array-like/reduce';
import {increasing} from '@total-order/primitive';
const calloc = _calloc(Int32Array);
const n = 100;
const a = calloc(n);
iota(a, 0, n, 0);
shuffle(a, 0, n);
max(increasing, a, 0, n); // 99