def internal_reverse_go_go

bend-mathlib@0.8.1.0 · list.bend:105

import bend-mathlib@0.8.1.0/list.bend as List
import Base

105def internal_reverse_go_go(a, -A: Kind(a), xs: List<a, A>, -acc: List<a, A>) -> {List.reverse.go(a, A, List.reverse.go(a, A, xs, acc), Nil{}) == List.reverse.go(a, A, acc, xs) : List<a, A>}:
106  match xs:
107    case Nil{}:
108      {==}
109    case h <> t:
110      internal_reverse_go_go(a, A, t, h <> acc)

Uses (2)

Used by (1)