Macro in tests coil-stdlib

and!

macro and(Expr lhs, Expr rhs) -> Code
Import
use tests::{and};
Source: src/tests.hy

Expands to lhs && rhs.

Invoke it as and!(…); the arguments are passed as code (Expr), not values.

Parameters#

NameType
lhsExpr
rhsExpr

Returns#

Code

See also#

  • not!: Expands to !expression.
  • eq!: Expands to lhs == rhs.
  • matches!: Returns whether expr matches the pattern ty, as a bool.
  • type!: Expands to typeof ty: the type of an expression, as a value that can be compared.
  • assert!: Fails the enclosing function with an error when condition is false.
↑ ↓ navigate ↵ open