JanetDocsPlaygroundI'm feeling luckyGitHub sign in

label



    macro
    boot.janet on line 367, column 1

    (label name & body)

    Set a label point that is lexically scoped. `name` should be a 
    symbol that will be bound to the label.


1 exampleSign in to add an example
Loading...
(label result
  (each x [0 1 2 3]
    (when (= x 3)
      (print "reached the end"))
    (when (= x 2)
      (return result 8))))
# => 8
sogaiuPlayground