apoc.coll.remove
Function APOC Core
apoc.coll.remove(coll, index, [length=1]) | remove range of values from index to length
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?