Skip to content
This repository was archived by the owner on Jul 25, 2018. It is now read-only.

Commit ab9ecd3

Browse files
committed
fix both/split
* compose isn't curried with fantasy-helpers/curry
1 parent 03f9adb commit ab9ecd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/strong.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const second = x => {
2121
: y => y[map](x);
2222
};
2323

24-
const both = curry((x, y) => compose(first(x), second(y)));
24+
const both = curry((x, y) => compose(first(x))(second(y)));
2525

26-
const split = curry((l, r) => compose(mapʹ(a => Tuple(a, a), identity), both(l, r)));
26+
const split = curry((l, r) => compose(mapʹ(a => Tuple(a, a), identity))(both(l, r)));
2727

2828
module.exports = { first
2929
, second
3030
, both
3131
, split
32-
};
32+
};

0 commit comments

Comments
 (0)