IsEven:
Filter:
Classes (extension) | Libraries > crucial > Constraints

IsEven : AbstractConstraint : Object
ExtensionExtension

answers whether the item is even.

Description

The class IsEven itself will respond to *value just as an instance will. So it can be used in place of functions in the same manner. This is faster than constructing a FunctionDef { }, and probably executes faster.

Class Methods

IsEven.value(obj)

Arguments:

obj

Inherited class methods

Instance Methods

.value(obj)

Arguments:

obj

Inherited instance methods