gleamgen/expression/case_

Types

pub type CaseExpression(input, output) {
  CaseExpression(
    input_expression: Expression(input),
    cases: List(
      #(Matcher(Unchecked, Unchecked), Expression(output)),
    ),
  )
}

Constructors

  • CaseExpression(
      input_expression: Expression(input),
      cases: List(
        #(Matcher(Unchecked, Unchecked), Expression(output)),
      ),
    )

Functions

pub fn build_expression(
  case_: CaseExpression(a, b),
) -> Expression(b)
pub fn new(
  input_expression: Expression(a),
) -> CaseExpression(a, b)
pub fn with_matcher(
  old: CaseExpression(a, b),
  matcher: Matcher(a, c),
  handler: fn(c) -> Expression(b),
) -> CaseExpression(a, b)
Search Document