For Gauche 0.9.15Search (procedure/syntax/module):

Next: , Previous: , Up: Library modules - SRFIs   [Contents][Index]

11.32 srfi.162 - Comparator sublibrary

Module: srfi.162

This is a supplement of SRFI-128, comparators. It provides a few comparator procedures, as well as several useful pre-defined comparators, listed below. Theese pre-defined comparators are already built in Gauche, so see Predefined comparators for the details.

default-comparator    boolean-comparator    real-comparator
char-comparator       char-ci-comparator    string-comparator
string-ci-comparator  pair-comparator       list-comparator
vector-comparator     eq-comparator         eqv-comparator
equal-comparator
Function: comparator-min comparator obj obj2 …
Function: comparator-max comparator obj obj2 …

[SRFI-162]{srfi.162} Find the object in obj1 obj2 … that is minimum or maximum compared by comparator. Note: SRFI-114 provides the same procedures.

(comparator-min list-comparator '(a c b) '(a d) '(a c))
  ⇒ (a c)
Function: comparator-min-in-list comparator list
Function: comparator-min-in-list comparator list

[SRFI-162]{srfi.162} Find the object in list that is minimum or maximum compared by comparator. It is an error if list is empty.


Next: , Previous: , Up: Library modules - SRFIs   [Contents][Index]


For Gauche 0.9.15Search (procedure/syntax/module):