JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

xprintf

core-api


    cfunction
    src/core/io.c on line 671, 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