Libraries anvil lang object

class object
Object is a root of the class hiearchy: every class has a object as a superclass.

Methods

object clone()
Clone (shallow copy) this object.

int compareTo(other)
Compares this object and 'other'. Returns -1 if this < other, 0 if this == other, 1 if this > other.

object copy()
Copy (deep copy) this object.

object each(object callback)
Iterates through the elements of this object and executes given callback.

boolean equals(other)
Checks if this object and 'other' equals.

int hashCode()
Return hashcode for this object.

iterator pipe(object converter)
Returns new iterator containing all the values of this object piped through converter. Generated iterator is evaluted lazily - only when more elements are retrieved.
Parameters converter -  Callable converter, receiving parameters (value, key)

iterator select(object selector)
Returns new iterator that contains all values of this object for which the given selector returned true. Generated iterator is evaluted lazily - only when more elements are retrieved.
Parameters selector -  Callable selector, receiving parameters (value, key)

boolean toBoolean()
Converts this object to boolean.

string toString()
Converts this object to string.