Skip to content

Commit

Permalink
refactor(dcons): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 10, 2021
1 parent 6d4be5a commit 045f2d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions packages/dcons/src/dcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ import type {
ISeq,
ISeqable,
IStack,
Predicate
Predicate,
} from "@thi.ng/api";
import { isArrayLike } from "@thi.ng/checks";
import { compare } from "@thi.ng/compare";
import { isArrayLike } from "@thi.ng/checks/is-arraylike";
import { compare } from "@thi.ng/compare/compare";
import { equiv } from "@thi.ng/equiv";
import { ensureIndex, illegalArgs } from "@thi.ng/errors";
import { IRandom, SYSTEM } from "@thi.ng/random";
import { IReducible, isReduced, ReductionFn } from "@thi.ng/transducers";
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
import { ensureIndex } from "@thi.ng/errors/out-of-bounds";
import type { IRandom } from "@thi.ng/random";
import { SYSTEM } from "@thi.ng/random/system";
import type { IReducible, ReductionFn } from "@thi.ng/transducers";
import { isReduced } from "@thi.ng/transducers/reduced";

export interface ConsCell<T> {
value: T;
Expand All @@ -37,7 +40,8 @@ export class DCons<T>
IReducible<any, T>,
IRelease,
ISeqable<T>,
IStack<T, T, DCons<T>> {
IStack<T, T, DCons<T>>
{
head: ConsCell<T> | undefined;
tail: ConsCell<T> | undefined;
protected _length: number = 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/dcons/src/sol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn2, Predicate } from "@thi.ng/api";
import { outOfBounds } from "@thi.ng/errors";
import { outOfBounds } from "@thi.ng/errors/out-of-bounds";
import { ConsCell, DCons } from "./dcons";

/**
Expand Down

0 comments on commit 045f2d9

Please sign in to comment.