... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. ... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. (.require [library [lux (.except)]] [// [functor ["[0]" contravariant]]]) (type .public (Equivalence a) (Interface (is (-> a a Bit) =))) (def .public (rec sub) (All (_ a) (-> (-> (Equivalence a) (Equivalence a)) (Equivalence a))) (implementation (def (= left right) (sub = left right)))) (def .public functor (contravariant.Functor Equivalence) (implementation (def (each f equivalence) (implementation (def (= reference sample) (of equivalence = (f reference) (f sample)))))))