You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
map:remove and array:remove take a list of keys/positions to be removed; fn:remove only accepts one. I propose changing fn:remove to bring it into line.
Without this, removing multiple items is tricky because removing one item changes the positions of the others.
Example use case:
let $p := index-where($persons ->{@status='retired'))
return $persons => remove($p)
(Of course, this could always be done with a filter. But removing a small number of items from a large sequence might be more efficient than a filter)
Activity
michaelhkay commentedon Jan 25, 2023
The change has been implemented.