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

recursive use of multi-path on cljs ignores 20th entry #318

Open
stevebuik opened this issue Sep 14, 2021 · 0 comments
Open

recursive use of multi-path on cljs ignores 20th entry #318

stevebuik opened this issue Sep 14, 2021 · 0 comments
Labels

Comments

@stevebuik
Copy link

following this example

https://github.com/redplanetlabs/specter/wiki/Using-Specter-Recursively#recursively-navigate-to-every-map-in-a-map-of-maps

but slightly more complex

(def MAP-NODES
(recursive-path [] p
(if-path map?
(continue-then-stay
(multi-path [MAP-VALS :a]
[MAP-VALS :b]
[MAP-VALS :c]) ; << different from example
p))))

This works but...

On CLJS if there are 21 entries in the multi-path it fails to compile with an arity error. not on jvm.

Bug: On CLJS, if there are 20 entries, compiles ok but the 20th entry is not used. works fine on jvm.

Workaround: compose the multi-path out of other multi-paths so that the 20 limit is never reached

@nathanmarz nathanmarz added the bug label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants