source data
Returns function accepting a single [x, y]
index tuple, used to lookup value in given array. Useful for transducers processing 2D data.
source data
number of items along X (columns)
Same as lookup2d, but for 3D data. The index ordering of the source data MUST be in Z, Y, X order (i.e. a stack of row major 2D slices). No bounds checks are done.
source data
number of items along X (columns)
number of items along Y (rows)
Generated using TypeDoc
Returns function accepting a single index arg used to lookup value in given array. No bounds checks are done.
[...map(lookup1d([10, 20, 30]), [2,0,1])] // [ 30, 10, 20 ]