def list.scale

bend-ml-llama@0.2.0.0 · main.bend:302

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

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

Uses (3)

Used by (2)