key-test

Returns the function used by its collection argument to compare keys.

All collection classes must provide or inherit a method that returns a result consistent with their iteration protocol and element methods.  A given method for key-test must return the same value (compared with ==) each time it is called.

Exported from

Modifiers

open

Arguments

collectionAn instance of <collection>.

Values

test-functionAn instance of <function>.  The function used by the collection to compare keys.
Summary
Returns the function used by its collection argument to compare keys.
The method on <sequence> returns the function ==.
The method on <table> returns the first value of table-protocol(table).

Functions

key-test

The method on <sequence> returns the function ==.

key-test

The method on <table> returns the first value of table-protocol(table).

The class of collections whose keys are consecutive integers starting from zero.
Compares two objects for identity.
The class of tables (also known as hash tables).
Returns the function used by its collection argument to compare keys.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of collections, aggregate data structures.
The class of objects that can be applied to arguments.