def text.of

ezx@1.11.0.0 · src/tool/plan.bend:361

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW

361# a file's text as it was answered, None when it is missing or not answered
362def text.of(got: TW.Heard) -> Maybe<&2, String>:
363  match got:
364    case TW.Open{}:
365      None{}
366    case TW.Heard{answer}:
367      match answer:
368        case TW.Plain{m}:
369          m
370        case _:
371          None{}

Uses (4)

Used by (1)