def last_v

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

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

1165# the value of the last candidate (lo if there is none)
1166def last_v(cs: List<&2, Cand>, +lo: F32) -> F32:
1167  match cs:
1168    case Nil{}:
1169      lo
1170    case Con{Cand{v, i}, t}:
1171      last_v(t, v)

Uses (3)

Used by (2)