def list.max

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

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

325# the maximum of xs (0 for an empty list)
326def list.max(xs: List<&2, F32>) -> F32:
327  match xs:
328    case Nil{}:
329      0.0
330    case Con{+h, t}:
331      list.max.go(t, h)

Uses (3)

Used by (1)