DEV Community

Szymon Pilkowski
Szymon Pilkowski

Posted on

Functional utilities - minimal set

Hey,

I've started putting together my own collection of essential functional utilities, and I'm wondering what you'd consider to be essential.
I want to keep it very minimal -- one of the reasons for doing this is an observation that in smaller projects I only use 2 or 3 ramda/lodash methods.

Here's the current list:

  • pipe
  • compose
  • pick
  • omit
  • head
  • tail
  • curry
  • zip
  • prop

What would you add?

Note that I'm not venturing into the realm of monads, functors and category theory in this project.

Here's the repo, if anyone's interested: https://github.com/ardcore/funf (I probably got some type annotations wrong, still learning Hindley-Milner)

Top comments (0)