def answer

cswap-bend-cli@0.1.0.0 · cliops.bend:35

import cswap-bend-cli@0.1.0.0/cliops.bend as Cliops
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act

35def answer(yes: Bool, +prefix: String, retry: Act.of(String)) -> Act.of(String):
36  match yes:
37    case True{}:
38      Act.bind(String, String, retry, t => Act.pure(String, prefix ++ "\n" ++ t))
39    case False{}:
40      Act.pure(String, prefix ++ "\nCancelled")

Uses (6)

Used by (1)