specter
specter copied to clipboard
Transforming a string with the `ALL` navigator yields a reversed sequence
In the current version of specter, if I transform ALL of a string I get the reversed order of characters:
(specter/transform specter/ALL identity "123")
;; => (\3 \2 \1)
I find this confusing since we have:
(specter/select specter/ALL "123")
;; => [\1 \2 \3]
and:
(specter/transform specter/ALL identity (vec "123"))
;; => [\1 \2 \3]
Is there a reason for this behavior or could we change it to the more intuitive one?
ran into this today
Would just need to extend all-transform protocol to strings.