def bounds_max_go

mlbend-preprocess@0.1.0.0 · main.bend:39

import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess
import Base

39# The largest of two rows, cell by cell.
40def bounds_max_go(maxs: List<&2, F32>, row: List<&2, F32>, +acc: List<&2, F32>) -> List<&2, F32>:
41  match maxs:
42    case Nil{}:
43      acc
44    case Con{a, ta}:
45      match row:
46        case Con{b, tb}:
47          bounds_max_go(ta, tb, List.append(&2, F32, acc, Con{F32.max(a, b), Nil{}}))
48        case Nil{}:
49          acc

Uses (4)

Used by (1)