JanetDocsPlaygroundI'm feeling luckyGitHub sign in

when-let



    macro
    boot.janet on line 689, column 1

    (when-let bindings & body)

    Same as `(if-let bindings (do ;body))`.


See also:if-let1 exampleSign in to add an example
Loading...
(when-let [root   (math/sqrt 64) 
           unused (even? root)] 
         (printf "%d is even" root))
# -> "8 is even"
felixrPlayground