JanetDocsPlaygroundI'm feeling luckyGitHub sign in

when-let



    macro
    boot.janet on line 645, column 1

    (when-let bindings & body)

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


1 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