import { range2d } from "@thi.ng/transducers/range2d" ; import { map } from "@thi.ng/transducers/map" ; import { swapxy } from "./utils.js" ; param cols param rows export const columns2d = ( cols , rows = cols ) => map ( swapxy , range2d ( rows | 0 , cols | 0 ) ) ;