poteat / hkt-toolbelt

✨Functional and composable type utilities

Home Page:http://hkt.code.lol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement arithmetic methods for `List`

MajorLift opened this issue · comments

The List module currently lacks basic arithmetic methods for lists of numeric types:

  • List.Max
  • List.Min
  • List.Sum
  • List.Product

Performance optimization should be prioritized over achieving a simpler, elegant implementation.

Unit tests and JSDoc comments should be included, and they should adhere to the guidelines established in the style-guide/ directory.