def append_last

cswap-bend-cli@0.1.0.0 · render.bend:181

import cswap-bend-cli@0.1.0.0/render.bend as Render
import 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)

Uses (3)

Used by (1)