I want to create an immutable set of paths. The path, in my case, is just an array of strings. So, let's say we have the following ways.
var paths = [["a"], ["a", "b", "c"]];
Then I create an immutable set like this
var selectedPaths = Immutable.Set(paths);
Although selectedPaths.first() returns ["a"] , I cannot understand why selectedPaths.contains(["a"]) returns false .
EDIT : Well, I got an answer why this happens, but I still can't get it to work the way I need.
SOLUTION As @Alnitak stated, I solved this by comparing the path to Immutable.List(["a"]) instead of a simple array
source share