Y
Hacker News
new
|
ask
|
show
|
jobs
by
abrudz
1286 days ago
Great for doing tacit programming[1] in JavaScript:
avg=ㅤ=>ㅤ.reduce((ㅤㅤ,ㅤㅤㅤ)=>ㅤㅤ+ㅤㅤㅤ)/ㅤ.length avg([3,1,4,1,5]) 2.8
[1]
https://en.wikipedia.org/wiki/Tacit_programming
1 comments
shepherdjerred
1285 days ago
I love point-free functions languages that support them, but please tell me you're not actually do this
link