These are chat archives for ramda/ramda

5th
Jul 2018
Rifat Nabi
@torifat
Jul 05 2018 00:47
@kulek_gitlab For starter you can remove the items.
const sumItemsPriceByProp = (e)  =>
  R.pipe(
    R.map(R.prop(e)),
    R.sum,
    formatPrice,
  );
Mateusz
@kulek_gitlab
Jul 05 2018 08:53
@torifat good point. Is there any trick to remove arrow function completely?
webduvet
@webduvet
Jul 05 2018 10:41
what would be the reason for that?
webduvet
@webduvet
Jul 05 2018 10:50
const sumItemsProceByProp = e => pipe(
  pluck(e),
  sum,
  formatPrice
);
Mateusz
@kulek_gitlab
Jul 05 2018 10:56
@webduvet, I'm kind of curious if it's possible.
Brad Compton (he/him)
@Bradcomp
Jul 05 2018 17:41
        pipe(pluck, sum, formatPrice)
Does that not work? You'll have to do a curryN(2, f) if you want it to be curried, but it should work fine