3 ms·
1. Lisp doesn't have built in pattern matching, either. But, just like Lisp, there are libraries out there for it[0]. 2. Would probably make more sense if it w
by warfangle 11y ago
1. Lisp doesn't have built in pattern matching, either. But, just like Lisp, there are libraries out there for it[0].
2. Would probably make more sense if it were a statically typed language. Don't most dynamically typed FPL need to emulate this?
3. Got an example of it being awkward that isn't helped with ES2015?
4. (item, list) => [item].concat(list)
[0]: https://www.npmjs.com/package/pattern-match https://www.npmjs.com/package/pattern-match