def fish_slot_lines

cli@0.2.0.0 · cli.bend:7190

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

7190def fish_slot_lines(slots: List<&2, Slot>, +at: String, +id: String) ->
7191    List<&2, String>:
7192  match slots:
7193    case Nil{}: Nil{}
7194    case Slot{k, True{}, required, many, rest, ph, comp} <> tail:
7195      fish_slot_lines(tail, at, id)
7196    case Slot{k, False{}, required, many, rest, ph, Free{}} <> tail:
7197      fish_slot_lines(tail, at, id)
7198    case Slot{k, False{}, required, many, rest, ph, comp} <> tail:
7199      String.concat([at, " p", Nat.show(k), "'", fish_words(id, comp)]) <>
7200        fish_slot_lines(tail, at, id)

Uses (8)

Used by (1)