Skip to content

Commit bf5a123

Browse files
committed
Merge pull request benji6#1 from richardTowers/master
Simplify Y Combinator
2 parents 6d6fcaf + ade4613 commit bf5a123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const T = a => b => b(a);
4040
const U = a => b => b(a(a)(b));
4141
const V = a => b => c => c(a)(b);
4242
const W = a => b => a(b)(b);
43-
const Y = a => (b => a(c => b(b)(c)))(b => a(c => b(b)(c)));
43+
const Y = a => (b => b(b))(b => a(c => b(b)(c)));
4444
```
4545

4646
Here are the tests:

index.es6.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export const T = a => b => b(a);
1919
export const U = a => b => b(a(a)(b));
2020
export const V = a => b => c => c(a)(b);
2121
export const W = a => b => a(b)(b);
22-
export const Y = a => (b => a(c => b(b)(c)))(b => a(c => b(b)(c)));
22+
export const Y = a => (b => b(b))(b => a(c => b(b)(c)));

0 commit comments

Comments
 (0)