These are chat archives for ramda/ramda

19th
Mar 2015
David Chambers
@davidchambers
Mar 19 2015 00:00
I have a patch ready to revert the R.notR.nix changes in a couple of files.
It's not a good idea for the build script to var R = require('..');. http://upload.wikimedia.org/wikipedia/en/b/ba/DrawingHands.jpg
David Chambers
@davidchambers
Mar 19 2015 00:09
ramda/ramda#937
Raine Virta
@raine
Mar 19 2015 00:12
thanks
Scott Sauyet
@CrossEye
Mar 19 2015 01:17
Just got back from my game and found my next task already taken care of! Thanks.
Walle Cyril
@GrosSacASac
Mar 19 2015 01:25
IS ramda almost finished or are there major updates planed ?
Scott Sauyet
@CrossEye
Mar 19 2015 02:07
How many FOSS systems ever really seem done, or even almost done? :smile:
We don't have an overall plan. What we are hoping is to have a fairly stable API in the next two months or so, so that we can publish version 1.0. At that point, we will become a bit more conservative and deliberate in the changes we make.
Santi Albo
@santialbo
Mar 19 2015 18:05
is there an equivalent for _.indexBy?
Danny Fritz
@dannyfritz
Mar 19 2015 18:25
@santialbo you could do it with a R.toPairs and R.reduce i suppose
but in the case of a conflict, how do you decide which one persists?
Santi Albo
@santialbo
Mar 19 2015 18:29
I ended up doing something similar after I saw #931 closed. In my case there's some previous validation.
Raine Virta
@raine
Mar 19 2015 20:42
is there a function like join but for lists
[[a], [b], [c]] -> [[a], [x], [b], [x], [c]]
Scott Sauyet
@CrossEye
Mar 19 2015 20:50
@raine. I've never seen anyone use something like that. What would you use it for?
you can sort of get there with
var inter = y =>
  R.reduceRight((x, acc) => [x, y].concat(acc)))([])
but i think it throws on one too many elements at the end
R.pipe(inter(y), R.init) ?
Hardy Jones
@joneshf
Mar 19 2015 21:10
or not, that concat isn't right
Raine Virta
@raine
Mar 19 2015 21:10
well, my use case is node spawn arguments, which takes args as a list. but CrossEye made me think again, I can just split my argument string before passing it
[ [ '-name', '2015-03-08-*' ], [ '-name', '2015-03-09-*' ] ]