for remove you can use `partition`
# stdlib
o
for remove you can use
partition