These are chat archives for ramda/ramda

27th
Jul 2015
Shane Keulen
@SeeThruHead
Jul 27 2015 13:00 UTC
would it be possible to add a mapIndex as an importable module to ramda? Find myself always adding index to map when working with reactjs.
David Chase
@davidchase
Jul 27 2015 13:01 UTC
Shane Keulen
@SeeThruHead
Jul 27 2015 13:03 UTC
yeah having to do { map, addIndex } from 'ramda'; const mapIndex = addIndex(map); for every module is getting old. Also it's kinda hampering adoption at work.
would be nice to have it wrapped up for us and importable from 'ramda'
David Chase
@davidchase
Jul 27 2015 13:06 UTC
why cant you create mapIndexed yourself? by combining map & addIndex and just import that
at my job, we create utils based off ramda/ramda-fantasy and then just require it in...
Shane Keulen
@SeeThruHead
Jul 27 2015 13:07 UTC
just feel like it would be nicer to have it built in.
some people see it as jumping through hoops compared to what they're used to (lodash)
David Chase
@davidchase
Jul 27 2015 13:10 UTC
it was around and then depreciated in 0.15.0 and removed in 0.16.0 so i guess you have to use an older version :stuck_out_tongue:
Shane Keulen
@SeeThruHead
Jul 27 2015 13:13 UTC
is there a way to see the changes of a release?
David Chase
@davidchase
Jul 27 2015 13:13 UTC
yeah upgrade guides
ramda/ramda#1186
thats the 0.15.0
Shane Keulen
@SeeThruHead
Jul 27 2015 13:16 UTC
seems like everyone was applauding this, what's the reasoning there?
Ludwig Magnusson
@TheLudd
Jul 27 2015 13:18 UTC
@SeeThruHead There were a lot of other functions that could have an index added to them. Instead of supplying a lot of xxxIndexed functions an probably missing some, this generalization was made.
David Chase
@davidchase
Jul 27 2015 13:19 UTC
yeah read about it here as well ramda/ramda#484
Shane Keulen
@SeeThruHead
Jul 27 2015 13:22 UTC
thanks, good read
Jethro Larson
@jethrolarson
Jul 27 2015 16:51 UTC
There's Probably also a concern that the lib is growing too fastand there should be more consolidation where possible
Shane Keulen
@SeeThruHead
Jul 27 2015 19:23 UTC
I'm a bit confused reading through the docs. Functors (Maybe/Just/Either...) are not included in ramda right? Do i need a lib such as folktale that implements these?
David Chambers
@davidchambers
Jul 27 2015 21:21 UTC
David Chase
@davidchase
Jul 27 2015 21:22 UTC
the funny thing is I use that one @davidchambers
David Chambers
@davidchambers
Jul 27 2015 21:23 UTC
You do? Cool. I developed a Ramda/Sanctuary REPL over the weekend. It’s pretty sweet. I’ll post in this room within the next few days when it’s ready for others to use.
David Chase
@davidchase
Jul 27 2015 21:25 UTC
thats awesome, yeah i started using to help with managing the DOM's ever graceful quirks as well as with node on the backend
thanks, i'll check them out
@davidchambers any reason your lib uses an older version of ramda?
Ludwig Magnusson
@TheLudd
Jul 27 2015 21:27 UTC
@SeeThruHead We use it in production. Our app is very fast due to many things unrelated to currying. We also have one issue with performance in a specific part of our tool. Also completely unrelated to currying.
David Chambers
@davidchambers
Jul 27 2015 21:28 UTC
@blup: Nope. I just haven’t updated it yet. I’m about to go on a spree updating projects to v0.17.x. :)
oh ok. look nice btw, i'll look forward to your REPL.
David Chambers
@davidchambers
Jul 27 2015 21:31 UTC
Cool. I’ll keep you posted.