Expanding Brain MapM Sequence
mapM f xs = sequence (fmap f xs) mapM = curry (sequence . uncurry fmap) mapM = ((.).(.)) sequence fmap mapM = fmap fmap fmap sequence fmap
A four-panel expanding-brain meme shows increasingly elaborate Haskell implementations of `mapM`, ending with an absurdly point-free version. The joke is that progressively more complex code is presented as greater intellectual enlightenment, poking fun at functional programming enthusiasts and clever Haskell abstractions.
human head profile / профиль человеческой головыbrain / мозгglowing brain / светящийся мозгblue neural visualization / синяя визуализация нейроновpurple neural visualization / фиолетовая визуализация нейроновprogramming code / программный кодwhite background / белый фонfour-panel layout / четырёхпанельная композицияpoint-free notation / бесточечная нотация
- @right_wing_dev_squads / 6413 2023-04-05
- Template
- Expanding Brain
- Type
- image
- Size
- 544×377 · 27.7 KiB
- Mood
- nerdy, absurd
- Language
- en
- Added