def last_part

cswap-bend-cli@0.1.0.0 · rpcmsg.bend:180

import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsg
import Base

180def last_part(ps: List<&2, String>) -> String:
181  match ps:
182    case Nil{}:
183      ""
184    case Con{h, Nil{}}:
185      h
186    case Con{h, Con{h2, t}}:
187      last_part(Con{h2, t})

Uses (2)

Used by (1)