def find_short_for_head

cli@0.2.0.0 · cli.bend:3327

import cli@0.2.0.0/cli.bend as Cli
import Base

3327def find_short_for_head(chars: String, keys: List<&2, OptKey>) ->
3328    Maybe<&2, OptFound>:
3329  match chars:
3330    case SNil{}: None{}
3331    case SCon{head, tail}:
3332      key_lookup(keys, String.append("-", Char.show(head)))

Uses (8)

Used by (2)