Skip to content

array-like/reduce

Repository files navigation

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

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size