6.12.5.1.5. Constant Function

A constant is a function which is a wrapper for a value. It ignores its argument when called, and returns the fixed value it was initialised with.
Start python section to interscript/felix/model/funcat.py[5 /8 ] Next Prev Last
    54: #line 89 "felix_func.ipk"
    55: class constant(function):
    56:   def __init__(self, value): self.value = value
    57:   def __call__(self, arg): return self.value
    58:   def is_equivalent(self, other): return self.value == other.value
    59: 
End python section to interscript/felix/model/funcat.py[5]