Skip to content

Conversation

@super7ramp
Copy link
Contributor

This closes #202.

(is (= [] (persistent! (conj!)))))

(testing "conj! coll"
(testing "when coll is transient"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test for the count of the transient vector before coercing it to a persistent vector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we ensure that the transient has the correct size/shape during intermediate calls to conj! (or any other x! applied to a transient)?

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.

clojure.core/conj!

2 participants