These are chat archives for ramda/ramda

3rd
Dec 2015
Hardy Jones
@joneshf
Dec 03 2015 03:23
@brian-gates glad that helped
@raqystyle moment is too mutable
for me anyway
Scott Sauyet
@CrossEye
Dec 03 2015 03:35
Lots of nice comments about Ramda in the latest Three Devs and a Maybe podcast.
Keith Alexander
@kwijibo
Dec 03 2015 04:20
nice
Hardy Jones
@joneshf
Dec 03 2015 06:19
Okay, I've got one for you
let's say someone streams some data to me in the form of pojo's
I want to perform rolling computations on just some of the values
like, mean
what's the best way to go about this?
project out the keys I want, mean them up and merge back in?
Niloy Mondal
@niloy
Dec 03 2015 08:08
should ramda have a tryCatch function. Works like R.tryCatch(tryFn, catchFn). Returns result of tryFn is no error, else returns result of catchFn.
David Chambers
@davidchambers
Dec 03 2015 08:41
@niloy, see S.encase and S.encaseEither.
Niloy Mondal
@niloy
Dec 03 2015 08:41
I dont want to pull in another library for such a simple thing :(
Ramda is pretty self-sufficient for my needs
David Chambers
@davidchambers
Dec 03 2015 08:42
Exceptions are not simple. ;)
Values are simple.
Keith Alexander
@kwijibo
Dec 03 2015 09:42
@niloy when do you need a value that could have been a result of a success or a failure, but you don't need to know which?
Ivan Demchenko
@raqystyle
Dec 03 2015 20:09
@scott-christopher awesome! thank you very much!
Ivan Demchenko
@raqystyle
Dec 03 2015 20:21
@brian-gates thank you for your question!
Tobias Pflug
@gilligan
Dec 03 2015 21:06
evening
oh, encase - that is nice @davidchambers :)
Tobias Pflug
@gilligan
Dec 03 2015 21:42
oh wow - seems like I haven't checked out folktale in a while. The homepage is great : http://docs.folktalejs.org/en/latest/index.html