def code.at

snap@1.4.0.0 · src/answer.bend:5

import snap@1.4.0.0/src/answer.bend as Answer
import Base

5# one char of the status: a newline ends it, and any other char is part of it,
6# with the rest of the status read only then
7def code.at(nl: Bool, +ch: Char, rest: Unit -> String) -> String:
8  match nl:
9    case True{}:
10      SNil{}
11    case False{}:
12      SCon{ch, rest(Unit{})}

Uses (4)

Used by (1)