Skip to content

Commit

Permalink
refactor(transducers): update rangeNd() arg types
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 29, 2020
1 parent 8531b22 commit d5aab14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/transducers/src/iter/range-nd.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -37,7 +37,10 @@ import { zip } from "./zip";
*
* @param vec
*/
export const rangeNd = (min: NumericArray, max?: NumericArray) =>
export const rangeNd = (
min: ArrayLikeIterable<number>,
max?: ArrayLikeIterable<number>
) =>
permutations.apply(
null,
<Range[]>(
Expand Down

0 comments on commit d5aab14

Please sign in to comment.