Skip to content

Instantly share code, notes, and snippets.

@WaldoJeffers
Created May 22, 2018 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaldoJeffers/60983c649457992bfd2b199598a8e9ed to your computer and use it in GitHub Desktop.
Save WaldoJeffers/60983c649457992bfd2b199598a8e9ed to your computer and use it in GitHub Desktop.
import { map } from 'conductor'
const add1 = x => x + 1
const mapByAdding1 = map(add1) // == collection => map(add1, collection)
mapByAdding1([1, 2, 3]) // [2, 3, 4]
mapByAdding1([2, 0, 3]) // [3, 1, 4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment