We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 577319d commit 07fd639Copy full SHA for 07fd639
1 file changed
core/src/ys/std.clj
@@ -350,10 +350,7 @@
350
char? (if (number? y)
351
(char (+ (int x) y))
352
(str x y))
353
- fn? (cond
354
- (fn? y) (comp y x)
355
- (sequential? y) (apply partial x y)
356
- :else (partial x y))
+ fn? (partial x y)
357
nil? (util/die "Can't add+ to a nil value")
358
seqable? (concat (to-list x)
359
(if (sequential? y)
@@ -375,6 +372,7 @@
375
372
(and (number? x) (vector? y)) (vec (apply concat (repeat x y)))
376
373
(and (sequential? x) (number? y)) (apply concat (repeat y x))
377
374
(and (number? x) (sequential? y)) (apply concat (repeat x y))
+ (fn? x) (comp y x)
378
(nil? x) (util/die "Can't mul+ to a nil value")
379
:else (* (to-num x 1) (to-num y 1))))
380
0 commit comments