def last_with

cli@0.2.0.0 · cli.bend:6219

import cli@0.2.0.0/cli.bend as Cli
import Base

6219def last_with(lines: List<&2, String>, +suffix: String) -> List<&2, String>:
6220  match lines:
6221    case Nil{}: Nil{}
6222    case line <> Nil{}: [String.append(line, suffix)]
6223    case line <> tail: line <> last_with(tail, suffix)

Uses (3)

Used by (4)