loading...

Functional utilities - minimal set

twitter logo github logo ・1 min read

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)

twitter logo DISCUSS
Classic DEV Post from Nov 21 '19

What are your favourite Alfred workflows?

Szymon Pilkowski profile image
I'm passionate about simplifying things.

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️