Skip to content

Commit 2faf2e4

Browse files
committed
core: Let 'call' use any ifn? value as funtion
1 parent d4b0a87 commit 2faf2e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/ys/std.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@
424424

425425
(defmacro call [x & xs]
426426
`(let [f# (or (value ~x) ~x)]
427-
(when-not (fn? f#) (util/die "Can't call(" (pr-str f#) ")"))
427+
(when-not (ifn? f#) (util/die "Can't call(" (pr-str f#) ")"))
428428
(f# ~@xs)))
429429

430430
(intern 'ys.std 'die yamlscript.util/die)

0 commit comments

Comments
 (0)