Module: Axiom::Function::Binary::Invertible

Includes:
Adamantium
Included in:
Connective::Conjunction, Connective::Disjunction, Numeric::Exponentiation, Predicate
Defined in:
lib/axiom/function/binary.rb

Overview

Mixin for invertable binary functions

Instance Method Summary collapse

Instance Method Details

#inverseFunction

Return the inverse function

Examples:

inverse = function.inverse

Returns:



86
87
88
# File 'lib/axiom/function/binary.rb', line 86

def inverse
  self.class.inverse.new(left, right).memoize(inverse: self)
end