I want to do something that looks similar to replace but performs different operation.
Using replace will create a new vector containing the corresponding value(s) of the index provided.
example
(replace [10 9 8 7 6] [0 4]) ;;=> [10 6]
My question now is that is there a way to create a new vector that will exclude the corresponding value(s) of the index provided? i.e delete the values of the index provided from the vector.
the code below is just an illustration. "some-function means something needs to be there"
( 'some-function' [10 9 8 7 6] [0 4]) ;;=> [9 8 7]