Macro in tests coil-stdlib

type!

macro type(Expr ty) -> Code
Import
use tests::{type};
Source: src/tests.hy

Expands to typeof ty: the type of an expression, as a value that can be compared.

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

Parameters#

NameType
tyExpr

Returns#

Code

See also#

  • not!: Expands to !expression.
  • eq!: Expands to lhs == rhs.
  • matches!: Returns whether expr matches the pattern ty, as a bool.
  • and!: Expands to lhs && rhs.
  • assert!: Fails the enclosing function with an error when condition is false.
↑ ↓ navigate ↵ open