matchItem:
Filter:
Reference | Common methods

matchItem

test if object fulfils a constraint

Implemented by: Object, Collection, Nil, Function

matchItem(item)

matchItem(item) may be passed to different objects that behave as constraints. More Objects may be conceived to implement matchItem to extend the interface.

See also: Dictionary: -matchAt.

Object-matchItem

Test if item is identical to object.

Collection-matchItem

Test if item is included in collection.

Nil-matchItem

returns true (Nil serves as a "joker", a stand-in for anything).

Function-matchItem

Test item by passing it to a function which should return a Boolean.