These are chat archives for ramda/ramda

31st
Mar 2018
Max
@maxfi
Mar 31 2018 01:10
@funfunction that is awesome and you're awesome! Thanks so much for your help!
Pedr Browne
@Undistraction
Mar 31 2018 13:32
Is there a function to change the position of an element in a list?
functionalStoic
@functionalStoic
Mar 31 2018 15:07
How exactly are you trying to change the position. What’s the criteria?
Pedr Browne
@Undistraction
Mar 31 2018 15:46
@functionalStoic I have a list [1,2,3,4,5,6] I need a new list with the item at a given idx moved up or down the list by one place, so for example I move the item at idx 2 up the list and end up with [1,2,4,3,5,6]. I also need to be able to move the item at idx to an arbitrary new index so for example I move the item at idx 1 to position 4 . So something like move(2, 4).