specter

hmadelaine 2023-07-29T08:49:23.927429Z

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 !

rolt 2023-07-29T09:48:07.908409Z

(srange 3 3)

hmadelaine 2023-07-29T09:49:17.412789Z

Thanks I am going to try !

rolt 2023-07-29T09:50:54.902769Z

(keyword here is "subsequence" in the doc)

hmadelaine 2023-07-29T14:10:03.269109Z

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