API for generic.arithmetic - clojure-contrib v1.3 (in development)

by Konrad Hinsen

Usage:
(ns your-namespace
  (:require clojure.contrib.generic.arithmetic))

Overview

Generic arithmetic interface
This library defines generic versions of + - * / as multimethods
that can be defined for any type. The minimal required 
implementations for a type are binary + and * plus unary - and /.
Everything else is derived from these automatically. Explicit
binary definitions for - and / can be provided for
efficiency reasons.

Public Variables and Functions



defmethod*

macro
Usage: (defmethod* ns name & args)
Define a method implementation for the multimethod name in namespace ns.
Required for implementing the division function from another namespace.
Source


qsym

macro
Usage: (qsym ns sym)
Create the qualified symbol corresponding to sym in namespace ns.
Required to access the division function from another namespace,
e.g. as (qsym clojure.contrib.generic.arithmetic /).
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.