Defs.list_eq: def of lawful-bytes@0.1.1.0 Import: import lawful-bytes@0.1.1.0/defs.bend as Defs Lines 82-92 of lawful-bytes@0.1.1.0/defs.bend: https://jend.leeeet.dev/read.txt?path=lawful-bytes@0.1.1.0/defs.bend&start_line=82&end_line=92 import Base # Two lists are equal, element by element. def list_eq(xs: List<&2, U32>, ys: List<&2, U32>) -> Bool: match xs ys: case Nil{} Nil{}: True{} case Con{x, xt} Con{y, yt}: U32.is_eq(x, y) && list_eq(xt, yt) case Nil{} Con{y, yt}: False{} case Con{x, xt} Nil{}: False{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq