These are chat archives for ramda/ramda

10th
Mar 2018
Rafi
@Rafi993
Mar 10 2018 11:32
Hi I have been trying to write this in point free form but I could not get it right. If the first element in array is duplicate I want to get the last occurance
Rafi
@Rafi993
Mar 10 2018 11:38
Here is i/p
const data = [[ "one.txt", "0", "70697bcd4c051272e4aeb5ec294fb9adb2d767b5" ],[ "two.txt", "0", "70697bcd4c051272e4aeb5ec294fb9adb2d767b5" ],[ "one.txt", "0", "9b47116c6d749f8452dd241c96ebb52343a53f45" ]]
and expected o/p is
[[
        "two.txt",
        "0",
        "70697bcd4c051272e4aeb5ec294fb9adb2d767b5"
    ],[
        "one.txt",
        "0",
        "9b47116c6d749f8452dd241c96ebb52343a53f45"
    ]]
Rafi
@Rafi993
Mar 10 2018 13:24
could anyone really help me with this