These are chat archives for ramda/ramda

2nd
Jul 2015
Stefano Vozza
@svozza
Jul 02 2015 09:37
@paldepind quick question, how stable is dotcompose?
Simon Friis Vindum
@paldepind
Jul 02 2015 09:44
@svozza It is stable. I don't see anything I'd like to change.
Stefano Vozza
@svozza
Jul 02 2015 09:44
production ready? ;)
Simon Friis Vindum
@paldepind
Jul 02 2015 09:48
I wouldn't hesitate. It's 70 SLOC.
Stefano Vozza
@svozza
Jul 02 2015 09:50
cool
i'll let you know how we get on!
Simon Friis Vindum
@paldepind
Jul 02 2015 09:54
@svozza That sounds great :)
Stefano Vozza
@svozza
Jul 02 2015 09:55
:shipit:
Stefano Vozza
@svozza
Jul 02 2015 14:37
so it looks like the issue i was having with R.evolve only affects version 0.14 so doesn't look like it needs any fix
Stefano Vozza
@svozza
Jul 02 2015 14:42
nice!
ah of course, there was a change to make it recursive:
ramda/ramda@6c85446
Jethro Larson
@jethrolarson
Jul 02 2015 22:54
R.if = (pred, fn) => R.ifElse(pred, fn, R.identity);
Good idea?
I guess if is a keyword so that'll blow up
Jethro Larson
@jethrolarson
Jul 02 2015 23:39
R.when?
I find myself writing R.ifElse(R.prop('w/e'), myFn, R.identity) a lot
Michael Hurley
@buzzdecafe
Jul 02 2015 23:57
R.cond([pred, fn])?
Scott Christopher
@scott-christopher
Jul 02 2015 23:58
That’ll be undefined for the false branch though, won’t it?
Michael Hurley
@buzzdecafe
Jul 02 2015 23:58
yep
so maybe R.cond([pred, fn], [R.T, R.identity]);