apoc.coll.remove
Function
apoc.coll.remove(coll [Any], index Integer, length Integer)
- removes a range of values from the list, beginning at position index for the given length of values.
Signature
apoc.coll.remove(coll :: LIST? OF ANY?, index :: INTEGER?, length = 1 :: INTEGER?) :: (LIST? OF ANY?)
Usage examples
The following removes 2
values, starting from index 1
:
RETURN apoc.coll.remove([1,3,5,7,9], 1, 2) AS output;
Output |
---|
[1, 7, 9] |
Was this page helpful?