JanetDocsPlaygroundI'm feeling luckyGitHub sign in

let



    macro
    boot.janet on line 227, column 1

    (let bindings & body)

    Create a scope and bind values to symbols. Each pair in bindings is 
    assigned as if with def, and the body of the let form returns the 
    last value.


3 examplesSign in to add an example
Loading...
(let [sweet "what does mine say?"]
 (let [dude sweet]
  (let [what-does-mine-say? dude]
   what-does-mine-say?))) # => "what does mine say?"
jgartePlayground
(let [a 1]
 (let [b a]
  b)) # => 1
jgartePlayground
(let [a 1 b 2 c 3] (+ a b c))  # => 6

(let
  [a 1
   b (+ a 1)
   c (+ b 1)]
  (+ a b c))  # => 6
cellularmitosisPlayground