def append_last
import cswap-bend-cli@0.1.0.0/render.bend as Renderimport Base
181def append_last(ls: List<&2, String>, +note: String) -> List<&2, String>:
182 match ls:
183 case Nil{}:
184 []
185 case Con{h, Nil{}}:
186 [h ++ note]
187 case Con{h, Con{h2, t2}}:
188 h <> append_last(h2 <> t2, note)