const sum = x => x ? y => y ? sum(x+y) : x : x
sum(1)(2)(3)(4)(5)() // 15

Yay!!!

Tags: brainfuck, ES6