r/javascript • • Mar 30 '18

TensorFlow.js

https://js.tensorflow.org/
471 Upvotes

101 comments sorted by

View all comments

Show parent comments

36

u/Knext Mar 30 '18
ReferenceError: big is not defined

11

u/Combinatorilliance Mar 30 '18
(function (isTrue) {if (isTrue) console.log("Big");}(true));

8

u/[deleted] Mar 30 '18
console.log((arg => (a => b => c => a(b)(c))(arg)('Big')('Small'))(a => b => a))

2

u/spel3o Mar 31 '18

console.log((arg => (a => b => c => a(b)(c))(arg)('Big')('Small'))(a => b => a))

No joke, doing beta reduction on this comment has given me the best intuition to date as to why (a => b => a) represents "True" in lambda calculus.