Skip to content

Commit 75afb2f

Browse files
committed
IFn impl for simple-map-entry
1 parent 1306709 commit 75afb2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10427,7 +10427,12 @@ reduces them without incurring seq initialization"
1042710427
(case x
1042810428
0 (simple-map-entry 0 k)
1042910429
1 (simple-map-entry 1 v)
10430-
nil))))
10430+
nil))
10431+
IFn
10432+
(-invoke [coll k]
10433+
(-nth coll k))
10434+
(-invoke [coll k not-found]
10435+
(-nth coll k not-found))))
1043110436

1043210437
(defn- pr-writer-impl
1043310438
[obj writer opts]

0 commit comments

Comments
 (0)