Skip to main content

Conditionals

8
  • case

    Takes an expression, and a set of clauses. Each clause can take the form of either: test-constant result-expr (...

  • cond

    Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates ...

  • condp

    Takes a binary predicate, an expression, and a set of clauses. Each clause can take the form of either: test-expr r...

  • if

    Evaluates test, then consequent or alternative.

  • if-let

    bindings => binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not...

  • when

    Evaluates test. If logical true, evaluates body in an implicit do.

  • when-let

    bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test

  • when-not

    Evaluates test. If logical false, evaluates body in an implicit do.