These are chat archives for ramda/ramda

5th
Apr 2018
Marco Guaspari Worms
@MarcoWorms
Apr 05 2018 07:00
Hi folks! I just wrote an articles on card games and it uses a lot of Ramda :), if anyone wants to check it out https://medium.com/@marcoworms/isolating-the-impurity-of-randomness-in-card-games-b216b926df06
Ian Hofmann-Hicks
@evilsoft
Apr 05 2018 07:05
That is a great article! thanks for the share!
Marco Guaspari Worms
@MarcoWorms
Apr 05 2018 07:26
:D thank you
Tomáš Konrády
@tommmyy
Apr 05 2018 08:23
@MarcoWorms Nice!
Marco Guaspari Worms
@MarcoWorms
Apr 05 2018 08:24
;)
Pedr Browne
@Undistraction
Apr 05 2018 08:51
@MarcoWorms Good article.
matrixbot
@matrixbot
Apr 05 2018 08:51
papas_source R.allPass
Vaggelis Papadogiannakis
@papas-source
Apr 05 2018 09:03
R.allPass
funfunction
@funfunction
Apr 05 2018 11:39
Hey @maxfi, no probs, glad to help out.
funfunction
@funfunction
Apr 05 2018 11:45
Hi @MarcoWorms, great work on the card game. I ramdaified your code a little bit more, lest I didn't add a bug. https://goo.gl/9Zo1ja
Lewis
@6ewis
Apr 05 2018 15:38
const guide = data.guide;
const [firstTitle, secondTitle] = Object.keys(data.guide)
const firstTitleData = Object.keys(guide[firstTitle]);
const secondTitleData = Object.keys(guide[secondTitle]);
a better way to do this?
Tomáš Konrády
@tommmyy
Apr 05 2018 16:25
@6ewis
const [firstData, secondData] = o(take(2), values)(data.guide)
Marco Guaspari Worms
@MarcoWorms
Apr 05 2018 18:04
@funfunction awesome! I refrained myself of going full point-free on it because I think it's hard for people with no Ramda background :)
Lewis
@6ewis
Apr 05 2018 19:56
@tommmyy what o
A
@dizzyone
Apr 05 2018 20:11
@tommmyy why are you dong take? the destructuring already gets the first two?