Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Haskell in ES6: Part 1. Parent comment
Those functions operate on lists. I think it should read as follows.
const head = (xs) => xs[0]; const last = (xs) => xs[xs.length-1]; const tail = (xs) => xs.slice(1); const init = (xs) => xs.slice(0, -1);
Those functions operate on lists. I think it should read as follows.
Am I missing something?