def vals
import bend-collections-laws-math@1.0.0.0/spec/math/generic.bend as Genericimport Base
105def vals(~T: Data, ~val: T -> Nat, xs: List<&2, T>) -> List<&2, Nat>:
106 match xs:
107 case Nil{}:
108 Nil{}
109 case Con{x, t}:
110 Con{val(x), vals(~T, ~val, t)}
Uses (2)
Used by (6)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:vals
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:vals
- bend-collections-laws-math@1.0.0.0/spec/math/generic:GcdAll.agrees
- bend-collections-laws-math@1.0.0.0/spec/math/generic:LcmAll.checked
- bend-collections-laws-math@1.0.0.0/spec/math/generic:Prod.checked
- …