module Axiom::Function::Unary::Invertible

Mixin for invertable unary functions

Public Instance Methods

inverse() click to toggle source

Return the inverse function

@example

inverse = function.inverse

@return [Function]

@api public

# File lib/axiom/function/unary.rb, line 113
def inverse
  self.class.inverse.new(operand).memoize(inverse: self)
end