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

When converting hashes to strings, sort their keys first. #127

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

skx
Copy link
Owner

@skx skx commented Feb 12, 2023

This allows the following code to return "true" as expected:

(print (eq
        { :name "Ale" :age 3 :colors [:red :green :blue] }
        { :colors [:red :green :blue] :age 3 :name "Ale" }))

skx added 2 commits February 12, 2023 11:14
This allows the following code to return "true" as expected:

```
(print (eq
        { :name "Ale" :age 3 :colors [:red :green :blue] }
        { :colors [:red :green :blue] :age 3 :name "Ale" }))
```
@skx skx mentioned this pull request Feb 12, 2023
@skx skx merged commit 51e0a83 into master Feb 12, 2023
@skx skx deleted the sort-hash-to-string branch February 12, 2023 09:22
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

Successfully merging this pull request may close these issues.

1 participant