def list.max

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

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

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

Uses (3)

Used by (1)