These are chat archives for ramda/ramda

8th
Dec 2014
Scott Sauyet
@CrossEye
Dec 08 2014 05:31
Yes, love the ribbon!
David Chambers
@davidchambers
Dec 08 2014 06:47
Get some sleep, @CrossEye! :)
Raine Virta
@raine
Dec 08 2014 07:05
{ foo: 'bar', ... } -> [ { key: 'foo', value: 'bar' }, ... ]
there doesn't seem to be anything for mapping an object to an array of objects
Raine Virta
@raine
Dec 08 2014 07:15
R.map(R.apply(function(key, value) {
  return { key, value };
}), R.toPairs(myObj));
David Chambers
@davidchambers
Dec 08 2014 08:06
I left a comment on your gist.
Raine Virta
@raine
Dec 08 2014 08:06
nice, zipObj
David Chambers
@davidchambers
Dec 08 2014 08:07
Yeah, it's a handy function.
I'm also surprised by how often R.unapply is useful.
Raine Virta
@raine
Dec 08 2014 10:00
isn't it annoying you can't use point free style inside object definition because you can't refer to this
or am i mistaken and there's a way
David Chambers
@davidchambers
Dec 08 2014 18:26
this doesn't play nicely with function composition.
Raine Virta
@raine
Dec 08 2014 20:39
why doesn't tail('foo') return 'oo'?
Michael Hurley
@buzzdecafe
Dec 08 2014 21:19
'cuz we don't treat strings like lists
Jethro Larson
@jethrolarson
Dec 08 2014 21:21
tail(split('', 'foo'))
David Chambers
@davidchambers
Dec 08 2014 22:47
I think it should, @raine. Expect to see a pull request along these lines within the next week or two. Should produce some :fireworks:.
Michael Hurley
@buzzdecafe
Dec 08 2014 22:52
if by :fireworks: you mean a long discussion thread, i bet you are right