I / Lambda Corridor
Types
Before a value speaks, its shape is already written in the margin.
I / Lambda Corridor
Before a value speaks, its shape is already written in the margin.
II / corridor
A function is a lit passage between two rooms of possibility.
compose :: (b -> c) -> (a -> b) -> a -> c
III / corridor
Two circuits remember they were always a single sentence.
(.) :: (b -> c) -> (a -> b) -> a -> c
The Monad Chapel
Monad m => m a -> (a -> m b) -> m b
The signal enters a context, touches a function, and exits still carrying the shape of its world.
map :: (a -> b) -> [a] -> [b]Apply one transformation to every inhabitant of a list.
foldr :: (a -> b -> b) -> b -> [a] -> bCollapse a procession into a remembered value.
(<$>) :: Functor f => (a -> b) -> f a -> f bA function lifted into a container's weather.
(>>=) :: Monad m => m a -> (a -> m b) -> m bSequential binding: a corridor whose door creates the next corridor.
traverse :: (Traversable t, Applicative f) => (a -> f b) -> t a -> f (t b)Walk a structure while preserving the ritual order of effects.
pure :: Applicative f => a -> f aPlace a bare value into the ceremonial frame.
The types will guide you.