JanetDocsPlaygroundI'm feeling luckyGitHub sign in

eval-string



    function
    boot.janet on line 2310, column 1

    (eval-string str)

    Evaluates a string in the current environment. If more control over 
    the environment is needed, use `run-context`.


1 exampleSign in to add an example
Loading...
(eval-string "(+ 1 2 3 4)") # -> 10
(eval-string ")") # -> parse error
(eval-string "(bloop)") # -> compile error
(eval-string "(+ nil nil)") # -> runtime error
swlkrPlayground