JanetDocsPlaygroundI'm feeling luckyGitHub sign in

xprintf



    cfunction
    src/core/io.c on line 621, column 1

    (xprintf to fmt & xs)

    Like `printf` but prints to an explicit file or value `to`. Returns 
    nil.


1 exampleSign in to add an example
Loading...
(def b @"")
(def v (* 1000 (math/random)))
# => 912.753 can differ for you
(xprintf b "Value reached level %f" v)
# => nil
b
# => @"Value reached level 912.752790\n"
pepePlayground