def last_part

cswap-bend-cli@0.1.0.0 · setimp.bend:28

import cswap-bend-cli@0.1.0.0/setimp.bend as Setimp
import Base

28def last_part(ps: List<&2, String>) -> String:
29  match ps:
30    case Nil{}:
31      ""
32    case Con{h, Nil{}}:
33      h
34    case Con{h, Con{h2, t}}:
35      last_part(Con{h2, t})

Uses (2)

Used by (1)