def reverse
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as Commonimport Base
140def reverse(-A: Data, xs: List<&2, A>) -> List<&2, A>:
141 match xs:
142 case Nil{}:
143 Nil{}
144 case Con{h, t}:
145 snoc(A, reverse(A, t), h)
Uses (2)
Used by (25)
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:FromBytes.be
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:ToBytes.be
- 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/math/typed/fixbytes:to_be32
- …