Fork me on GitHub

Hi, I was wondering if there is a way to do something along these lines:

  [s/ALL s/ALL keyword?]
  [1 2 3]
  [(:akeyword true) (:akeyword false) (:akeyword false)]) => [(1 true) (2 false) (3 false)]
Meaning navigate to a subsequnce and replace it with another sequence in place. I thought about using transform with a impure function that returns the next item on every call, but i'm assuming there is a better way. thanks in advance :


I'm thinking, if the transform would optionally supply the index of the item to the given function. the function could be pure and give the next item...


@idosilverwater you're looking for subselect


great! thank you