Skip to content

Commit 45f5638

Browse files
committed
CLJS-2103: clarify arg type and order constraints of keys and vals
1 parent 91be632 commit 45f5638

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8992,9 +8992,9 @@ reduces them without incurring seq initialization"
89928992
(es6-iterable KeySeq)
89938993

89948994
(defn keys
8995-
"Returns a sequence of the map's keys."
8996-
[hash-map]
8997-
(when-let [mseq (seq hash-map)]
8995+
"Returns a sequence of the map's keys, in the same order as (seq map)."
8996+
[map]
8997+
(when-let [mseq (seq map)]
89988998
(KeySeq. mseq nil)))
89998999

90009000
(defn key
@@ -9071,9 +9071,9 @@ reduces them without incurring seq initialization"
90719071
(es6-iterable ValSeq)
90729072

90739073
(defn vals
9074-
"Returns a sequence of the map's values."
9075-
[hash-map]
9076-
(when-let [mseq (seq hash-map)]
9074+
"Returns a sequence of the map's values, in the same order as (seq map)."
9075+
[map]
9076+
(when-let [mseq (seq map)]
90779077
(ValSeq. mseq nil)))
90789078

90799079
(defn val

0 commit comments

Comments
 (0)