def word_keep
import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sessimport Base
97def word_keep(+empty: Bool, +h: String, +rest: List<&2, String>) -> List<&2, String>:
98 match empty:
99 case True{}:
100 rest
101 case False{}:
102 h <> rest