def text.at

snap@1.4.0.0 · src/answer.bend:23

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

23# one char before the body: a newline starts the body, which is the rest as
24# it stands, and any other char is still the status
25def text.at(nl: Bool, +tail: String, rest: Unit -> String) -> String:
26  match nl:
27    case True{}:
28      tail
29    case False{}:
30      rest(Unit{})

Uses (3)

Used by (1)