From d5aab143ec0e3cae001af5a3804ff32e06c9c4ef Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Fri, 29 May 2020 14:31:00 +0100 Subject: [PATCH] refactor(transducers): update rangeNd() arg types --- packages/transducers/src/iter/range-nd.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/transducers/src/iter/range-nd.ts b/packages/transducers/src/iter/range-nd.ts index 5b0f8ace3e..f0be4e43ed 100644 --- a/packages/transducers/src/iter/range-nd.ts +++ b/packages/transducers/src/iter/range-nd.ts @@ -1,4 +1,4 @@ -import type { NumericArray } from "@thi.ng/api"; +import type { ArrayLikeIterable } from "@thi.ng/api"; import { map } from "../xform/map"; import { permutations } from "./permutations"; import { range, Range } from "./range"; @@ -37,7 +37,10 @@ import { zip } from "./zip"; * * @param vec */ -export const rangeNd = (min: NumericArray, max?: NumericArray) => +export const rangeNd = ( + min: ArrayLikeIterable, + max?: ArrayLikeIterable +) => permutations.apply( null, (