mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 21:59:16 +02:00
117 lines
3 KiB
Markdown
117 lines
3 KiB
Markdown
---
|
|
layout: main
|
|
title: API
|
|
---
|
|
|
|
# SRFI 128 - Comparators
|
|
|
|
The `(srfi 128)` provides comparators, which bundle a type test predicate, an equality predicate, an ordering predicate, and a hash function into a single Scheme object. By packaging these procedures together, they can be treated as a single item for use in the implementation of data structures.
|
|
|
|
See the [SRFI document](http://srfi.schemers.org/srfi-128/srfi-128.html) for more information.
|
|
|
|
- [`comparator? `](#comparator)
|
|
- [`comparator-ordered? `](#comparator-ordered)
|
|
- [`comparator-hashable? `](#comparator-hashable)
|
|
- [`make-comparator `](#make-comparator)
|
|
- [`make-pair-comparator `](#make-pair-comparator)
|
|
- [`make-list-comparator `](#make-list-comparator)
|
|
- [`make-vector-comparator `](#make-vector-comparator)
|
|
- [`make-eq-comparator `](#make-eq-comparator)
|
|
- [`make-eqv-comparator `](#make-eqv-comparator)
|
|
- [`make-equal-comparator `](#make-equal-comparator)
|
|
- [`boolean-hash `](#boolean-hash)
|
|
- [`char-hash `](#char-hash)
|
|
- [`char-ci-hash `](#char-ci-hash)
|
|
- [`string-hash `](#string-hash)
|
|
- [`string-ci-hash `](#string-ci-hash)
|
|
- [`symbol-hash `](#symbol-hash)
|
|
- [`number-hash `](#number-hash)
|
|
- [`make-default-comparator `](#make-default-comparator)
|
|
- [`default-hash `](#default-hash)
|
|
- [`comparator-register-default! `](#comparator-register-default)
|
|
- [`comparator-type-test-predicate`](#comparator-type-test-predicate)
|
|
- [`comparator-equality-predicate `](#comparator-equality-predicate)
|
|
- [`comparator-ordering-predicate `](#comparator-ordering-predicate)
|
|
- [`comparator-hash-function `](#comparator-hash-function)
|
|
- [`comparator-test-type `](#comparator-test-type)
|
|
- [`comparator-check-type `](#comparator-check-type)
|
|
- [`comparator-hash `](#comparator-hash)
|
|
- [`hash-bound `](#hash-bound)
|
|
- [`hash-salt `](#hash-salt)
|
|
- [`=? `](#section)
|
|
- [`<? `](#section-1)
|
|
- [`>? `](#section-2)
|
|
- [`<=? `](#section-3)
|
|
- [`>=? `](#section-4)
|
|
- [`comparator-if<=> `](#comparator-if)
|
|
|
|
# comparator?
|
|
|
|
# comparator-ordered?
|
|
|
|
# comparator-hashable?
|
|
|
|
# make-comparator
|
|
|
|
# make-pair-comparator
|
|
|
|
# make-list-comparator
|
|
|
|
# make-vector-comparator
|
|
|
|
# make-eq-comparator
|
|
|
|
# make-eqv-comparator
|
|
|
|
# make-equal-comparator
|
|
|
|
# boolean-hash
|
|
|
|
# char-hash
|
|
|
|
# char-ci-hash
|
|
|
|
# string-hash
|
|
|
|
# string-ci-hash
|
|
|
|
# symbol-hash
|
|
|
|
# number-hash
|
|
|
|
# make-default-comparator
|
|
|
|
# default-hash
|
|
|
|
# comparator-register-default!
|
|
|
|
# comparator-type-test-predicate
|
|
|
|
# comparator-equality-predicate
|
|
|
|
# comparator-ordering-predicate
|
|
|
|
# comparator-hash-function
|
|
|
|
# comparator-test-type
|
|
|
|
# comparator-check-type
|
|
|
|
# comparator-hash
|
|
|
|
# hash-bound
|
|
|
|
# hash-salt
|
|
|
|
# =?
|
|
|
|
# <?
|
|
|
|
# >?
|
|
|
|
# <=?
|
|
|
|
# >=?
|
|
|
|
# comparator-if<=>
|
|
|