These are chat archives for ramda/ramda

22nd
May 2016
Taylor Hurt
@thurt
May 22 2016 04:14
@xgrommx so it's just fnList.map(fn => fn(...xs)) in natural JS terms? http://goo.gl/TrHAV1
trying to do point-free implementation with existing ramda functions looks painful compared to that
Denis Stoyanov
@xgrommx
May 22 2016 13:06
@thurt in ramda you can use R.unapply(R.identity)
Denis Stoyanov
@xgrommx
May 22 2016 13:20
@thurt @ram-bot
const input = [[1,2,3], [3,4,5]];
const transforms = [R.intersection, R.difference, R.flip(R.difference)];

R.apply(R.juxt(transforms))(input);
@ram-bot
const input = [[1,2,3], [3,4,5]];
const transforms = [R.intersection, R.difference, R.flip(R.difference)];

R.apply(R.juxt(transforms))(input);
ram-bot
@ram-bot
May 22 2016 13:20
[ [ 3 ], [ 1, 2 ], [ 4, 5 ] ]
Taylor Hurt
@thurt
May 22 2016 16:27
@xgrommx :thumbsup: i haven't used ramda much yet so expressing solutions in small js only functions just seems easier