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

Skip to content

Commit 1851858

Browse files
author
Ryan Neufeld
committed
Merge pull request clojure-cookbook#379 from ctford/patch-1
Maps have consistent ordering on keys and values
2 parents 9ebe646 + 1ec0848 commit 1851858

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)