These are chat archives for ramda/ramda
is there a better way for this?
const average = converge(divide, [sum, length]) const directedByNolan = compose(equals('Christopher Nolan'), prop('Director')) const imdbRating = compose(Number, prop('imdbRating')) const averageNolanRating = compose(average, map(imdbRating), filter(directedByNolan))
I'm surprised Ramda doesn't have an average function but apart from that, can I improve these point-free functions?
directedByNolancould be simplified with a
viewand does this even make sense)
set( myLens)separately, and not
memoizethe lens, itself.
memoizewas the behavior of