ArrayMap?
http://clojure.org/data_structures#toc21

James


On Sat, Jun 25, 2011 at 1:55 PM, Alex Baranosky
<[email protected]> wrote:
> What are some options for having a map that guarantees ordering of its keys
> in Clojure? (note: sorted-map won't do!)  My first try was to use
> LinkedHashMap, but am running into exceptions of the
> " java.util.LinkedHashMap cannot be cast to clojure.lang.Associative"
> variety.
> So then I tried to use extend-type LinkedHashMap to Associative.  Then I
> received the error message: "interface clojure.lang.Associative is not a
> protocol" ... makes sense :)
> So now that I've gone through all of that, which was fun while it lasted,
> could any of you help me figure out how to use a map that guarantees the
> entries are in the order they were entered?
> Thanks for the help!
> Alex
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to