We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f4f900 commit 96f7a95Copy full SHA for 96f7a95
src/mori.cljs
@@ -331,6 +331,12 @@
331
IHash
332
(-hash [this] (.call (aget methods "hash") this))))
333
334
+(defn extend-to-iindexed [obj methods]
335
+ (specify! obj
336
+ IIndexed
337
+ (-nth [this k] (.call (aget methods "nth") this))
338
+ (-nth [this k not-found] (.call (aget methods "nth") this))))
339
+
340
(defn extend-to-ikvreduce [obj methods]
341
(specify! obj
342
IKVReduce
@@ -368,6 +374,7 @@
368
374
"IEncodeJS" (extend-to-iencodejs obj methods)
369
375
"IEquiv" (extend-to-iequiv obj methods)
370
376
"IHash" (extend-to-ihash obj methods)
377
+ "IIndexed" (extend-to-iindexed obj methods)
371
378
"IKVReduce" (extend-to-ikvreduce obj methods)
372
379
"ILookup" (extend-to-ilookup obj methods)
373
380
"IMap" (extend-to-imap obj methods)
0 commit comments