Fork me on GitHub
#specter
<
2023-11-15
>
Lidor Cohen09:11:06

Hello 👋 I'm using specter to transform an ordered-map :

(sp/setval [sp/ALL (sp/selected? sp/LAST (sp/must :display) (sp/pred= :none))]
             sp/NONE
             some-ordered-map)
and I get back a hashmap. what can I do to make specter preserve? the structure type? is there any specific protocol I can implement that will solve this?

Lidor Cohen09:11:25

NVM it was some blunder on my side. specter indeed returns ordered-map 🙂