def last2
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/loop.bend as Loopimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake3/types.bend as T
33def last2(rest: List<&2,T.Out>, +x: T.Out) -> T.Out:
34 match rest:
35 case Nil{}: x
36 case Con{y,r}: last2(r,y)
Uses (2)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/loop:run2_split
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/loop:run_tree
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/loop:run_tree_go
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/loop:snoc2