def List.all

Base · base.bend:1110

import Base
1110def List.all(~a: Quant, ~A: Kind(a), ~f: A -> Bool, xs: List<a, A>) -> Bool:
1111  match xs:
1112    case Nil{}:
1113      True{}
1114    case h <> t:
1115      List.all.if(u => List.all(~a, ~A, ~f, t), f(h))

Uses (3)

Used by (29)