is there a way to splice a sequence into another starting at a specific index with specter? e.g.
(spr/setval [(spr/before-index 1)] [:a :b] [:x :y])
=> [:x [:a :b] :y]
; want: [:x :a :b :y]
@spieden you can use srange
to navigate to a subcollection.
(setval [(srange 1 1)] [:a :b] [:x :y]) => [:x :a :b :y]
cool thanks! @drowsy
in this case you are navigating to an empty subcollection in the middle and replacing it with something nonempty
yes i had that idea in my head from using sets at some point but didn’t know to look for
s/to/what to/