We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be handy to have a settable flag to convert lists to vectors if that level of detail isn't needed. For example:
puts YAML.dump EDN.read('[1 (2 [3 4] #{5 6} {:a 7 :b 8})]') puts puts puts YAML.dump EDN.read('[1 [2 [3 4] #{5 6} {:a 7 :b 8}]]')
--- - 1 - !ruby/array:EDN::Type::List - 2 - - 3 - 4 - !ruby/object:Set hash: 5: true 6: true - :a: 7 :b: 8 --- - 1 - - 2 - - 3 - 4 - !ruby/object:Set hash: 5: true 6: true - :a: 7 :b: 8
Currently this behavior can be invoked with a one-line change of line 37 in lib/edn/transform.erb:
lib/edn/transform.erb
rule(:list => subtree(:array)) { EDN::Type::List.new(*array) }
to:
rule(:list => subtree(:array)) { array }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be handy to have a settable flag to convert lists to vectors if that level of detail isn't needed. For example:
Currently this behavior can be invoked with a one-line change of line 37 in
lib/edn/transform.erb
:to:
The text was updated successfully, but these errors were encountered: