These are chat archives for ramda/ramda
mapwhich for me were often just applying Ramda compositions
mapover results without concern for how many results may actually arrive.
Seqfit well as it accepts an iterator directly and allows me to do lazy eval for
const getHighestName = R.compose( R.nth(0), R.reduce((highest, person) => highest > person ? highest : person, ), R.toPairs )
R.toPairs, it works like a charm, thanks!
but this works
const getHighestName = R.compose( R.nth(0), R.reduce(R.maxBy(R.nth(1)), ["", -Infinity]), R.toPairs )