A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clojure.github.io/algo.generic/clojure.algo.generic.comparison-api.html below:

clojure.algo.generic.comparison - algo.generic 0.1.4-SNAPSHOT API documentation

API for clojure.algo.generic.comparison -

Full namespace name:

clojure.algo.generic.comparison Overview
Generic comparison interface
This library defines generic versions of = not= < > <= >= zero?
as multimethods that can be defined for any type. Of the
greater/less-than relations, types must minimally implement >.

Public Variables and Functions
<multimethod
Usage: (< x)
       (< x y)
       (< x y & more)
Return true if each argument is smaller than the following ones.
The minimal implementation for type ::my-type is the binary form
with dispatch value [::my-type ::my-type]. A default implementation
is provided in terms of >.
Source

<=multimethod
Usage: (<= x)
       (<= x y)
       (<= x y & more)
Return true if each arguments is smaller than or equal to the following
ones. The minimal implementation for type ::my-type is the binary form
with dispatch value [::my-type ::my-type]. A default implementation
is provided in terms of >.
Source

=multimethod
Usage: (= x)
       (= x y)
       (= x y & more)
Return true if all arguments are equal. The minimal implementation for type
::my-type is the binary form with dispatch value [::my-type ::my-type].
Source

>multimethod
Usage: (> x)
       (> x y)
       (> x y & more)
Return true if each argument is larger than the following ones.
The minimal implementation for type ::my-type is the binary form
with dispatch value [::my-type ::my-type].
Source

>=multimethod
Usage: (>= x)
       (>= x y)
       (>= x y & more)
Return true if each argument is larger than or equal to the following
ones. The minimal implementation for type ::my-type is the binary form
with dispatch value [::my-type ::my-type]. A default implementation
is provided in terms of <.
Source

maxfunction
Usage: (max x)
       (max x y)
       (max x y & more)
Returns the greatest of its arguments. Like clojure.core/max except that
is uses generic comparison functions implementable for any data type.
Source

minfunction
Usage: (min x)
       (min x y)
       (min x y & more)
Returns the least of its arguments. Like clojure.core/min except that
is uses generic comparison functions implementable for any data type.
Source

neg?multimethod
Usage: (neg? x)
Return true of x is negative.
Source

not=function
Usage: (not= & args)
Equivalent to (not (= ...)).
Source

pos?multimethod
Usage: (pos? x)
Return true of x is positive.
Source

zero?multimethod
Usage: (zero? x)
Return true of x is zero.
Source

Logo & site design by

Tom Hickey

.

Clojure auto-documentation system by Tom Faulhaber.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4