These are chat archives for ramda/ramda

21st
Mar 2015
Walle Cyril
@GrosSacASac
Mar 21 2015 07:22
I discovered pipe, I think it would be nice, if in the doc there was some information about in in the compose description
Walle Cyril
@GrosSacASac
Mar 21 2015 08:43
http://ramdajs.com/docs/#split is that an error ?
oh no split works like this ok
James Forbes
@JAForbes
Mar 21 2015 10:13
@GrosSacASac I agree.
Walle Cyril
@GrosSacASac
Mar 21 2015 11:55
Empty string passed to getElementById(). in the console in try rambda
Walle Cyril
@GrosSacASac
Mar 21 2015 13:50
Raine Virta
@raine
Mar 21 2015 13:55
hmm, ramda doesn't have var K = function(x){return function(){return x;};};?
Michael Hurley
@buzzdecafe
Mar 21 2015 14:03
K <=> always
Walle Cyril
@GrosSacASac
Mar 21 2015 14:03
Raine Virta
@raine
Mar 21 2015 14:03
buzzdecafe: what do you mean?
Raine Virta
@raine
Mar 21 2015 14:10
yeah. nevermind lol
i was looking at R.identity for some reason and thinking no that's not the same
Michael Hurley
@buzzdecafe
Mar 21 2015 14:13
maybe we should alias that :smiling_imp:
Walle Cyril
@GrosSacASac
Mar 21 2015 16:27
in the docs, the back button is broken in ff
Walle Cyril
@GrosSacASac
Mar 21 2015 17:05
is it better to use parseInt or Number function ?
Scott Sauyet
@CrossEye
Mar 21 2015 17:13
hmm, wonder why the back button is broken. Have to take a look.
Raine Virta
@raine
Mar 21 2015 17:15
i just did, and couldn't figure it out after 30mins
please tell if you do
Scott Sauyet
@CrossEye
Mar 21 2015 17:15
I will, but probably not for a few days at least.
Walle Cyril
@GrosSacASac
Mar 21 2015 17:17
I maybe have a clue
Scott Sauyet
@CrossEye
Mar 21 2015 17:18
parseInt and Number have very different meanings, and very different usages. Number coerces its entire input into a floating point number, or returns NaN if that's not possible. parseInt parses a string as far as it can to pull out the integer which begins it (in the given radix) and ignores the rest. So I don't think there's a question of which is better.
Walle Cyril
@GrosSacASac
Mar 21 2015 17:19
if I have 100% sure strings like "1" or "2" or "3" or "0" ?
Scott Sauyet
@CrossEye
Mar 21 2015 17:27
Then either would be fine. But Number is a little more semantically correct, and has the advantage that it can easily be mapped even with native Array.prototype.map. (The radix parameter of parseInt and the index parameter to the map callback don't play well together.)
Raine Virta
@raine
Mar 21 2015 23:19
i think the upgrade guide is missing R.transduce
David Chambers
@davidchambers
Mar 21 2015 23:54
That's a significant omission! :)