def snoc
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as Commonimport Base
90def snoc(-A: Data, xs: List<&2, A>, x: A) -> List<&2, A>:
91 match xs:
92 case Nil{}:
93 Con{x, Nil{}}
94 case Con{h, t}:
95 Con{h, snoc(A, t, x)}
Uses (1)
Used by (12)
- bend-collections-laws-crypto@1.0.0.0/spec/lib/common:reverse
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/list:append_snoc
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/list:base_rev_go
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/list:length_snoc
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/list:rev_snoc
- …