def remove_answer
cswap-bend-cli@0.1.0.0 · cliops.bend:186
import cswap-bend-cli@0.1.0.0/cliops.bend as Cliops
import Base
import cswap-bend-cli@0.1.0.0/store/ops.bend as SOps
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
186def remove_answer(yes: Bool, +prompt: String, +ctx: SBase.Ctx, +num: String) -> Act.of(Cmd.Out):
187 match yes:
188 case True{}:
189 Act.bind(String, Cmd.Out, SOps.remove(ctx, num), t => Act.pure(Cmd.Out, Cmd.Out{0, prompt ++ t ++ "\n", ""}))
190 case False{}:
191 Act.pure(Cmd.Out, Cmd.Out{0, prompt ++ "Cancelled\n", ""})