def nth_hit
import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sessimport Base
194def nth_hit(+hit: Bool, +h: String, +rest: Maybe<&2, String>) -> Maybe<&2, String>:
195 match hit:
196 case True{}:
197 Some{h}
198 case False{}:
199 rest