Cli.fish_values_fn: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7112-7122 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7112&end_line=7122 import Base def fish_values_fn(+id: String, lists: List<&2, List<&2, String>>) -> List<&2, String>: match lists: case Nil{}: [] case head <> tail: List.concat(&2, String, [ ["", "# Prints the values of the one_of list numbered $argv[1].", String.concat(["function ", id, "_values"]), " switch $argv[1]"], fish_values(head <> tail, 1n), [" end", "end"], ]) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.concat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fish_values