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.
open
| collection | An instance of <collection>. |
| test-function | An instance of <function>. The function used by the collection to compare keys. |
The method on <sequence> returns the function ==.
The method on <table> returns the first value of table-protocol(table).