Fork me on GitHub
#specter
<
2023-07-29
>
hmadelaine08:07:23

Hi everyone ! I have a simple need but don’t find the right navigator t o do it. Is it possible do insert en sub sequence into a sequence :

(sp/setval [path to an element] [7 9] [0 1 2 3 4]) => [0 1 7 9 2 3 4]
Thank you !

rolt09:07:07

(srange 3 3)

hmadelaine09:07:17

Thanks I am going to try !

rolt09:07:54

(keyword here is "subsequence" in the doc)

hmadelaine14:07:03

(sp/setval (sp/srange 2 2) [7 9] [0 1 2 3 4]) => [0 1 7 9 2 3 4]
👍