Explorer

core.pattern

description
Pattern of a match arm. any matches every value, bind matches every value and binds it to the variable, variant matches a variant with the tag whose payload matches the pattern, string / number / boolean match the literal
type
Type
expression
Union{
  #any,
  #bind(Record{variable_id: Number, variable_name: String}),
  #variant(Record{tag: String, payload: @core.pattern}),
  #string(String),
  #number(Number),
  #boolean(Boolean)
}
visibility
public
core.pattern (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: UkSdB5So0iz5z3ZFUHww0Okujc04NzND-BA2R75KpJs
content hash: tYGzzZVYQiWx0-1Ky5ryiH2gzJNY2WwQVVpY75yrTuA