def parent_pages

cli@0.2.0.0 · cli.bend:7549

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

7549# The parent's page, none at the root.
7550def parent_pages(words: List<&2, String>) -> List<&2, String>:
7551  match words:
7552    case Nil{}: []
7553    case word <> Nil{}: []
7554    case word <> tail: [String.join(word <> init_words(tail), "-")]

Uses (4)

Used by (1)