Skip to content

Instantly share code, notes, and snippets.

View vpotravnyy's full-sized avatar

Slava Potravnyy vpotravnyy

  • Lohika
  • Ukraine, Odessa
View GitHub Profile
// Boolean logic
const tru = (t, f) => t()
const fals = (t, f) => f()
const not = x => (t, f) => x(f, t)
const and = (a, b) => (t, f) => a(
() => b(t, f),
() => f()
)