Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Building a tiny little broken calculator with parser combinators.
Under "Parser Generator":
```
const parseChar = char => input => [ input[0] === char, input.slice(1, input.length) ]; const parseA = parseChar('A'); const parseA = parseChar('B'); parseA(testString) // [ true, 'bcd123' ] parseB(testString) // [ false, 'Abcd123' ]
There seems to be a typo: the 2nd "parseA" should really be a "parseB"?
Under "Parser Generator":
```
```There seems to be a typo: the 2nd "parseA" should really be a "parseB"?