Functional Programming Concepts
Overview This is essential a map of content for functional programming concepts that I’m learning. List Monad
Overview This is essential a map of content for functional programming concepts that I’m learning. List Monad
Thoughts I’m writing this more as a way to document and organize my thoughts around the list monad. This is a very important monad. A map of functional concepts I’m currently studying can be found at Functional Programming Concepts. The Code export const List = list => ({ list, map: fn => List(list.map(fn)), fold: (fn, initialValue) => List(list.reduce(fn, initialValue)), foldMap(monoid, empty) { const mappedList = list.reduce(fn, initialValue); const result = mappedList....