Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transforming a string with the ALL navigator yields a reversed sequence #320

Open
meditans opened this issue Jan 1, 2022 · 0 comments
Open

Comments

@meditans
Copy link

meditans commented Jan 1, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant