def nth_hit

cswap-bend-cli@0.1.0.0 · daemon/sess.bend:194

import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sess
import 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

Uses (3)

Used by (1)