def list.scale

bend-ml-llama@0.2.1.0 · main.bend:303

import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama
import Base

303# k * xs
304def list.scale(+k: F32, xs: List<&2, F32>) -> List<&2, F32>:
305  match xs:
306    case Nil{}:
307      Nil{}
308    case Con{+h, t}:
309      (k * h : F32) <> list.scale(k, t)

Uses (3)

Used by (2)