JanetDocsPlaygroundI'm feeling luckyGitHub sign in

juxt



    macro
    boot.janet on line 1175, column 1

    (juxt & funs)

    Macro form of `juxt*`. Same behavior but more efficient.


2 examplesSign in to add an example
Loading...
(defn f1 [s] (string "-" s "-"))
(defn f2 [s] (string "=" s "="))
(defn f3 [s] (string "#" s "#"))

(def f (juxt f1 f2 f3))

(f "x") # => ("-x-" "=x=" "#x#")
uvtcPlayground
((juxt + - * /) ;[1 2 3])
# => '(6 -4 6 0.166667)
sogaiuPlayground