Skip to content

Instantly share code, notes, and snippets.

@teivah
Last active March 16, 2024 01:12
Show Gist options
  • Save teivah/ac19e297a0d03ad7596ffe5466382774 to your computer and use it in GitHub Desktop.
Save teivah/ac19e297a0d03ad7596ffe5466382774 to your computer and use it in GitHub Desktop.
fmapEx :: [Int] -- A function returning a list
fmapEx = fmap (+ 1) [1, 2, 3] -- [2, 3, 4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment