Skip to content

Commit

Permalink
issue-#57 - Removed 'curry*' method imports from './src/list/' dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
elycruz committed Aug 9, 2022
1 parent 962f55d commit cd076ea
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/fjl/src/list/dropWhile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {curry, CurryOf2} from "../function/curry";
import {CurryOf2} from "../function/curry";
import {length} from "./length";
import {findIndexWhere} from "./utils";
import {slice} from "../platform/slice";
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/isSuffixOf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {length} from "./length";
import {indexOf} from "../platform/slice";
import {Slice} from "../types";
Expand Down
7 changes: 5 additions & 2 deletions packages/fjl/src/list/nubBy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {length} from "./length";
import {any} from "./any";
import {Slice} from "../types";
Expand Down Expand Up @@ -27,4 +26,8 @@ export const
return out;
},

$nubBy = curry(nubBy);
$nubBy = <T>(pred) =>
(list: Slice<T>): Slice<T> =>
nubBy(pred, list)

;
1 change: 0 additions & 1 deletion packages/fjl/src/list/scanr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {length} from "./length";
import {Slice} from "../types";

Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/scanr1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {last} from "./last";
import {init} from "./init";
import {scanr, ScanrOp} from "./scanr";
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/stripPrefix.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {isPrefixOf} from "./isPrefixOf";
import {splitAt} from "./splitAt";
import {length} from "./length";
Expand Down
2 changes: 0 additions & 2 deletions packages/fjl/src/list/unfoldr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {curry} from "../function/curry";

export type UnfoldrOp<A, B> = (b: B | undefined, i?: number, as?: A[]) => [A, B] | undefined;

export const
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/unionBy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {foldl} from "./foldl";
import {any} from "./any";
import {sliceCopy} from "./utils/sliceCopy";
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/utils/findWhere.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry, CurryOf2} from "../../function/curry";
import {length} from "../length";
import {Indexable, PredForIndexable} from "../../types";

Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/zip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {length} from "./length";
import {reduce, toShortest} from "./utils";
import {push} from "./push";
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/zip3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {zipN} from "./zipN";

export const
Expand Down
1 change: 0 additions & 1 deletion packages/fjl/src/list/zip4.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {curry} from "../function/curry";
import {zipN} from "./zipN";

export const /**
Expand Down

0 comments on commit cd076ea

Please sign in to comment.