Last active
January 6, 2020 16:45
-
-
Save brekk/12a634b38ccc49faa8ad469033ae690c to your computer and use it in GitHub Desktop.
the difference between implicit and explicit arity iteration functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {map} from 'ramda' | |
const inputs = '54321'.split('') | |
const results = map(parseInt, inputs) | |
// const parseInts = map(parseInt) | |
// const results = parseInts(inputs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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