Use Traverse & the Maybe Monad to Safely Process Lists of Data with Sanctuary

InstructorJosh Burgess

Share this video with your friends

Send Tweet

Sanctuary.js is a functional programming library for JavaScript. It's similar to Ramda, but more strict and includes extra features, like the error handling monads Maybe & Either. It's also similar to Folktale, but primarily takes influence from Haskell & PureScript instead of Scala. In this lesson, we use Sanctuary's Traverse and the Maybe monad to safely process lists of data while gaining insight into the relationship between Traverse & Sequence.

Babak Badaei
~ 6 years ago

maybeScore takes a value and returns an Applicative. Identity takes a value and returns the value. Not the same signature.