def length
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as Commonimport Base
63def length(-A: Data, xs: List<&2, A>) -> Nat:
64 match xs:
65 case Nil{}:
66 0n
67 case Con{h, t}:
68 1n+length(A, t)
Uses (2)
Used by (26)
- bend-collections-laws-math@1.0.0.0/proofs/lib/list:length_rev
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:rev_none
- bend-collections-laws-math@1.0.0.0/proofs/lib/list:length_snoc
- bend-collections-laws-math@1.0.0.0/proofs/lib/list:sc_length_take
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:fl_len
- …