Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ec0848

Browse files
committed
Maps have consistent ordering on keys and values
As confirmed by the benevolent dictator in http://dev.clojure.org/jira/browse/CLJ-1302.
1 parent 9ebe646 commit 1ec0848

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

02_composite-data/2-17_retrieving-multiple-keys.asciidoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ keys:
7272
;; -> (1 :baz)
7373
----
7474

75-
Since maps are not ordered, it is _not_ safe to assume that the
76-
ordering of keys and values is identical (even if you stumble upon an
77-
example where it is). In cases where you're pulling multiple values
78-
from nonkeyword maps, it is probably easiest to wrap that interaction
79-
up via +juxt+:
75+
In cases where you're pulling multiple values from nonkeyword maps, it is probably
76+
easiest to wrap that interaction up via +juxt+:
8077

8178
[source,clojure]
8279
----

0 commit comments

Comments
 (0)