def last_part
import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsgimport 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})