List.internal_foldl_reverse_go: def of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 1940-1945 of bend-mathlib@0.8.1.0/list.bend: https://jend.leeeet.dev/read.txt?path=bend-mathlib@0.8.1.0/list.bend&start_line=1940&end_line=1945
import Base
def internal_foldl_reverse_go(~a: Quant, ~A: Kind(a), ~B: Type, ~f: B -> A -> B, xs: List, -acc: List, -z: B) -> {List.foldl(~a, ~A, ~B, ~f, List.reverse.go(a, A, xs, acc), z) == List.foldl(~a, ~A, ~B, ~f, acc, List.foldr(~a, ~A, ~B, ~(x => y => f(y, x)), xs, z)) : B}:
match xs:
case Nil{}:
{==}
case h <> t:
internal_foldl_reverse_go(~a, ~A, ~B, ~f, t, h <> acc, z)
Uses (4):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.foldl
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.foldr
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse.go