def cut_eq.go
import shake@0.7.0.0/src/cli.bend as Cliimport Base
257# `name` and an optional `=value` from the body after `--`
258def cut_eq.go(
259 cs: List<&2, Char>,
260 +acc: List<&2, Char>
261) -> String & Maybe<&2, String>:
262 match cs:
263 case Nil{}:
264 (from.rev(acc), None{})
265 case Con{+c, +t}:
266 cut_eq.chr(c, t, acc, cut_eq.go(t, c <> acc))