also, is there a simple way, given a sequence, to remove the first match and leave the rest?
(specter/setval [specter/ALL (specter/pred= 1)] specter/NONE [1 2 1 3])
this removes all the matches
@currentoor In that case you can do (s/setval [(s/filterer (s/pred= 1)) s/FIRST] s/NONE [1 2 1 3])
cool thanks!
Or, hm it doesn't work as I expected
game.core> (s/setval [(s/filterer (s/pred= 1)) s/FIRST] s/NONE [1 2 1 3])
[1 2 3]
I would expect [2 1 3]
out@currentoor Did you notice?
yeah i would too
but actually i just need to remove one occurrence of an element
so this works
hehe