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

Add an option to parse-string that maps YAML sequences to Clojure vectors instead of Clojure LazySeqs #29

Closed
bombaywalla opened this issue Dec 24, 2021 · 2 comments

Comments

@bombaywalla
Copy link

It would be useful to have parse-string return a Clojure Vector rather than a Clojure LazySeq for YAML sequences.
It would allow the use of get-in on the resultant Clojure data structure.
io.forward/yaml does this.

@borkdude
Copy link
Collaborator

This has come up before here: #18
The reason why this wasn't done was to support recursive YAML (which arguably is a niche case).

@bombaywalla
Copy link
Author

Sorry. I should have checked closed issues before creating a new one.
I'll use the postwalk suggestion mentioned in the previous issue.
Closing this issue.

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

2 participants