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

Included in:
Connective::Conjunction, Connective::Disjunction, 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:



83
84
85
# File 'lib/axiom/function/binary.rb', line 83

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