The "Map and Bind and Apply, Oh my!" Series
Last updated
Was this helpful?
Last updated
Was this helpful?
In this series of posts, I'll attempt to describe some of the core functions for dealing with generic data types (such as Option
and List
). This is a follow-up post to .
Yes, I know that , but for this post I thought I'd take a different approach from most people. Rather than talking about abstractions such as type classes, I thought it might be useful to focus on the core functions themselves and how they are used in practice.
In other words, a sort of "man page" for map
, return
, apply
, and bind
.
So, there is a section for each function, describing their name (and common aliases), common operators, their type signature, and then a detailed description of why they are needed and how they are used, along with some visuals (which I always find helpful).
. A toolset for working with elevated worlds.
. Or, how to compose world-crossing functions.
. Working with independent and dependent data.
. Mixing lists and elevated values.
. A real-world example that uses all the techniques.
. Or, designing your own elevated world.
. .