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 7f7b647 commit e531c34Copy full SHA for e531c34
src/main/cljs/cljs/core.cljs
@@ -4668,7 +4668,7 @@ reduces them without incurring seq initialization"
4668
{:added "1.2"
4669
:static true}
4670
([m ks]
4671
- (get-in m ks nil))
+ (reduce get m ks))
4672
([m ks not-found]
4673
(loop [sentinel lookup-sentinel
4674
m m
src/test/cljs/cljs/core_test.cljs
@@ -3111,6 +3111,15 @@
3111
(deftest test-cljs-1569
3112
(is (= (meta (with-meta (seq [1 2 3]) {:a 1})) {:a 1})))
3113
3114
+(deftest test-cljs-1420
3115
+ (is (= :2-arity
3116
+ (get-in
3117
+ (reify
3118
+ ILookup
3119
+ (-lookup [o k] :2-arity)
3120
+ (-lookup [o k not-found] :3-arity))
3121
+ [:foo]))))
3122
+
3123
3124
(comment
3125
;; ObjMap
0 commit comments