apoc.coll.dropDuplicateNeighbors
Function
apoc.coll.dropDuplicateNeighbors(list [Any])
- removes duplicate consecutive objects in the list.
Usage examples
The following removes duplicate neighbors
RETURN apoc.coll.dropDuplicateNeighbors([1,1,1,4,5,4,6,6,7]) as output;
Output |
---|
[1, 4, 5, 4, 6, 7] |
Was this page helpful?