Hacker News new | ask | show | jobs
by javadocmd 2706 days ago
Partial function application would be sweet. I wind up manually currying a lot of functions and readability starts to get sketchy.

  const foo = (a: number, b: number): number => { /*...*/ }
to

  const foo = (a: number) => (b: number): number => { /*...*/ }