These are chat archives for ramda/ramda

13th
Feb 2019
Julien BONNIN
@Powerplex
Feb 13 11:01 UTC
Hello :) I add an issue with ramda "modulo" method, I was wondering if I should open an issue on Github:
as you can see the native modulo operator fails on big numbers
EunseokEom
@eseom
Feb 13 17:34 UTC

Hi, Ramda newbie

const a = [1,2]
const b = [5, 6, 7, 8]
R.?(a, b)

expected result:

[6, 7] // filter index as a's elements

how to do this?

pick returns object not list
Ben Briggs
@ben-eb
Feb 13 17:39 UTC
@eseom props(a, b) :)
EunseokEom
@eseom
Feb 13 17:43 UTC
Thanks, but.. I use the Typescript, that complains that not match with number[] or string[] somthing like these.
Is there list's way not object's way?
I used pick, but it returns type Pick. So I use it to other functions, errors occur.
Ben Briggs
@ben-eb
Feb 13 17:51 UTC
Sorry, I'm not a TS user myself
EunseokEom
@eseom
Feb 13 17:51 UTC
Yep thank you very much
Markus
@evdama
Feb 13 19:59 UTC
@eseom R.slice
Ben Briggs
@ben-eb
Feb 13 20:00 UTC
slice won't work if a is [1, 3]
Should be [6, 8] rather than [6, 7, 8]
Markus
@evdama
Feb 13 20:01 UTC
right, he's got two lists... never mind