Skip to content

Instantly share code, notes, and snippets.

@evaporei
Created September 13, 2019 19:55
Show Gist options
  • Select an option

  • Save evaporei/a92c2f9df430f88d9b59d0a91c20dfb1 to your computer and use it in GitHub Desktop.

Select an option

Save evaporei/a92c2f9df430f88d9b59d0a91c20dfb1 to your computer and use it in GitHub Desktop.
Category Theory - Functor JavaScript map
console.log('mapped list:', [1, 2, 3].map(x => x * 2)) // [2, 4, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment