Explorer

core.match-arm-to-value

description
Turn core.match-arm into a value of the evaluator (core.value). The inverse of core.value-to-match-arm (generated by scripts/generate_value_decoders.ts)
type
Fn(value: @core.match-arm) -> @core.value
expression
fn(value$0) =>
  #record<@core.value>([
    {key: "pattern", value: @core.pattern-to-value(value: $0.pattern)},
    {key: "body", value: @core.expression-to-value(value: $0.body)}
  ])
visibility
public
core.match-arm-to-value (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: EpOtR-a4tIcn7DothEmbMl2lMeP_zRJvIi2haVjgOIY
content hash: 3EiVM2PK8MWuXQyAqrZe6iv74vb-QSz8q1o76Bh52xA