You need to extend goog.Uri to IEquiv and IHash. Not recommended outside of
your application.

David

On Wed, May 6, 2015 at 1:53 PM, Dustin Getz <[email protected]> wrote:

> What is the best way to extend Clojurescript hashmap types with this
> functionality?
>
> cljs.user> (aset js/window "m" {(goog.Uri. "/asdf") :val :a :val2})
> {#</asdf> :val, :a :val2}
> cljs.user> (contains? (aget js/window "m") :a)
> true
> cljs.user> (contains? (aget js/window "m") (goog.Uri. "/asdf"))
> false
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to