Belt_Range
A small module to provide a inclusive range operations [start, finsish]
, it use a for-loop internally instead of creating an array
let forEachU: int => int => Js.Fn.arity1((int => unit)) => unit;
forEach start finish action
equivalent to Belt.Array.(forEach (range start finish) action)
let everyU: int => int => Js.Fn.arity1((int => bool)) => bool;
every start finish p
equivalent to Belt.Array.(every (range start finish) p )
let everyByU: int => int => step:int => Js.Fn.arity1((int => bool)) => bool;
everyBy start finish ~step p
equivalent to Belt.Array.(every (rangeBy start finish ~step) p)
let someU: int => int => Js.Fn.arity1((int => bool)) => bool;
some start finish p
equivalent to Belt.Array.(some (range start finish) p)
let someByU: int => int => step:int => Js.Fn.arity1((int => bool)) => bool;
someBy start finish ~step p
equivalent to Belt.Array.(some (rangeBy start finish ~step) p)