-
Notifications
You must be signed in to change notification settings - Fork 56
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
def-map-type broken in 0.3.12-SNAPSHOT #34
Comments
Maps now require |
I've updated the related documentation. |
Is the branch for 0.3.12-SNAPSHOT private? I would like to see the updated example. I feel like I've gone through every possible combination of |
Sorry, I made the change just before going to bed, and apparently neglected to actually submit it. Let me know if the example in the docs doesn't work for you. |
I'm trying this: (def-map-type Foo [x]
(get [this key default] (get x key default))
(assoc [this key val] (assoc x key val))
(dissoc [this key] (dissoc x key))
(keys [this] (keys x))
(meta [this] (meta x))
(with-meta [this m] (Foo. (with-meta x m)))) which fails with:
I feel like I might be overlooking something really simple, but shouldn't this be working? EDIT: |
Your code works for me on the latest code in |
You are right. There was a conflict with my profiles.clj file, with the following dependency vector: |
Trying to evaluate this:
Results in this:
The text was updated successfully, but these errors were encountered: