We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 652cda9 commit a9a1d0cCopy full SHA for a9a1d0c
src/main/cljs/cljs/core.cljs
@@ -12311,8 +12311,13 @@ reduces them without incurring seq initialization"
12311
not-found))
12312
12313
ILookup
12314
- (-lookup [coll k] (-nth coll k nil))
12315
- (-lookup [coll k not-found] (-nth coll k not-found))
+ (-lookup [coll k]
+ (when (number? k)
12316
+ (-nth coll k nil)))
12317
+ (-lookup [coll k not-found]
12318
+ (if (number? k)
12319
+ (-nth coll k not-found)
12320
+ not-found))
12321
12322
IAssociative
12323
(-assoc [coll k v]
0 commit comments