These are chat archives for ramda/ramda

16th
Jun 2015
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 09:59
so, turns out mori has everything, problem is that mori is more functional than ramda and doesn't give dumb methods on the objects it returns. Which I like, but I can't use ramda methods on them because of this as dispatch will obviously not work
hemanth.hm
@hemanth
Jun 16 2015 09:59
Meow
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:00
hemanth the cat
morning
hemanth.hm
@hemanth
Jun 16 2015 10:00
Hey ashnur! Nice to see you here :)
Morning!
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:00
some might disagree :)
hemanth.hm
@hemanth
Jun 16 2015 10:00
:D
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:00
also, I was trying to do the same thing with immutable.js but... they don't have the nice iterate thing mori has. all i found was this: https://github.com/facebook/immutable-js/issues/254#issuecomment-67750603
hemanth.hm
@hemanth
Jun 16 2015 10:01
there was a heated discussion on #javascript wrt filter(not(eq(2))) vs (xs) => xs.filter( n => n !== 2)
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:02
their problem, i don't read them anymore
hemanth.hm
@hemanth
Jun 16 2015 10:04
which do you prefer and why?
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:05
?
i just told you its their problem, why would you bring that "hated" discussion here?
instead, you could help me find a nice way to have mori's iterate with immutable js
hemanth.hm
@hemanth
Jun 16 2015 10:06
:( Not really, I like filter(not(eq(2))) hmm, ok chuck it, let me see how I could help you.
'@@iterator' does not help?
Raine Virta
@raine
Jun 16 2015 10:16
filter(complement(eq(2))) is correct, not is * → Boolean
or, reject(eq(2))
Raine Virta
@raine
Jun 16 2015 10:17
well, in Ramda it would be complement
hemanth.hm
@hemanth
Jun 16 2015 10:18
:+1:
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:19
hemanth: it helps, it is just way to damn ugly
hemanth @hemanth is working on https://github.com/fp-dom and https://github.com/fp-js
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:19
compared to what mori.iterator is
hemanth.hm
@hemanth
Jun 16 2015 10:19
hrrrm
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 10:20
sorry, mori.iterate
Raine Virta
@raine
Jun 16 2015 10:28
hemanth: like drboolean suggests, comparing those two examples is kind of pointless because it's mostly matter of taste. but once you start taking the list as an argument, you can compose and then the conciseness of PFS starts to pay off, i think
hemanth.hm
@hemanth
Jun 16 2015 10:40
@raine Yes, having functions as the first argument always helps in composing et.al
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 11:21
...
hemanth.hm
@hemanth
Jun 16 2015 11:23
:cactus: to @ashnur
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 11:29
not very helpful :)
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 12:19
there is no way i will use this @@iterable kind of construct
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 12:28
ok, i just realized how it is done in immutable-js without the @@iterator thing
hemanth.hm
@hemanth
Jun 16 2015 12:29
cool! pass it on ;)
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 12:30
not yet, still have to write it
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 12:39
hemanth: actually, not possible
Cannot perform this action with an infinite size.
even though it's lazy, it doesn't let me do it
ashnur @ashnur deleting immutable.js
hemanth.hm
@hemanth
Jun 16 2015 12:40
strange, even though it's lazy...hmm
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 12:40
it's ugly and complicated anyway
Hardy Jones
@joneshf
Jun 16 2015 16:53
did gitter just update?
David Chambers
@davidchambers
Jun 16 2015 16:54
Yes, I believe so.
Hardy Jones
@joneshf
Jun 16 2015 17:31
What does that do?
Raine Virta
@raine
Jun 16 2015 17:37
it allows you to enable some kind of beta version of gitter
Hardy Jones
@joneshf
Jun 16 2015 17:42
oh
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 18:07
i like my gitter from my irc client. :)
Raine Virta
@raine
Jun 16 2015 18:08
typing markdown code blocks from irc is difficult
GÁBOR Áron Zsolt
@ashnur
Jun 16 2015 18:28
i am not doing it :)
Hardy Jones
@joneshf
Jun 16 2015 18:32
you're missing out