def above

bend-kit-collections@0.1.4.1 · LAWS.bend:108

import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS
import Base

108def above(~K: Data, ~cmp: K -> K -> Cmp, lb: Maybe<&2, K>, +k: K) -> Bool:
109  match lb:
110    case None{}:
111      True{}
112    case Some{b}:
113      Cmp.is_lt(cmp(b, k))

Uses (4)

Used by (25)