Skip to content

Instantly share code, notes, and snippets.

@brekk
Last active January 6, 2020 16:45
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 brekk/12a634b38ccc49faa8ad469033ae690c to your computer and use it in GitHub Desktop.
Save brekk/12a634b38ccc49faa8ad469033ae690c to your computer and use it in GitHub Desktop.
the difference between implicit and explicit arity iteration functions
import {map} from 'ramda'
const inputs = '54321'.split('')
const results = map(parseInt, inputs)
// const parseInts = map(parseInt)
// const results = parseInts(inputs)
const inputs = '54321'.split('')
const results = inputs.map(parseInt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment