JanetDocsI'm feeling luckyGitHub sign in

return



    function
    boot.janet on line 357, column 1

    (return to &opt value)

    Return to a prompt point.


See also:prompt1 exampleSign in to add an example
Loading...
(print
  (prompt :a 
          (for i 0 1000000000000 
            (print (string "i=" i))
            (if (= i 2) 
                (return :a 10)))))
# output:
# i=0
# i=1
# i=2
# 10
felixr