aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure/contrib/generic')
-rw-r--r--src/clojure/contrib/generic/arithmetic.clj23
-rw-r--r--src/clojure/contrib/generic/collection.clj17
-rw-r--r--src/clojure/contrib/generic/comparison.clj18
-rw-r--r--src/clojure/contrib/generic/functor.clj8
-rw-r--r--src/clojure/contrib/generic/math_functions.clj17
5 files changed, 40 insertions, 43 deletions
diff --git a/src/clojure/contrib/generic/arithmetic.clj b/src/clojure/contrib/generic/arithmetic.clj
index e7e01b42..b6f0a6ff 100644
--- a/src/clojure/contrib/generic/arithmetic.clj
+++ b/src/clojure/contrib/generic/arithmetic.clj
@@ -1,7 +1,7 @@
;; Generic interfaces for arithmetic operations
;; by Konrad Hinsen
-;; last updated March 19, 2009
+;; last updated May 3, 2009
;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -11,17 +11,16 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns clojure.contrib.generic.arithmetic
- "Generic arithmetic interface
-
- NOTE: This library is VERY experimental. It WILL change significantly
- with future release.
-
- 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."
+(ns
+ #^{:author "Konrad Hinsen"
+ :doc "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."}
+ clojure.contrib.generic.arithmetic
(:use [clojure.contrib.generic
:only (root-type nulary-type nary-type nary-dispatch)]
[clojure.contrib.types :only (defadt)])
diff --git a/src/clojure/contrib/generic/collection.clj b/src/clojure/contrib/generic/collection.clj
index 7d521804..8bb39a94 100644
--- a/src/clojure/contrib/generic/collection.clj
+++ b/src/clojure/contrib/generic/collection.clj
@@ -1,7 +1,7 @@
;; Generic interfaces for collection-related functions
;; by Konrad Hinsen
-;; last updated March 18, 2009
+;; last updated May 3, 2009
;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -11,14 +11,13 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns clojure.contrib.generic.collection
- "Generic collection function interface
-
- NOTE: This library is VERY experimental. It WILL change significantly
- with future release.
-
- This library defines generic versions of common collection-related functions
- as multimethods that can be defined for any type."
+(ns
+ #^{:author "Konrad Hinsen"
+ :doc "Generic arithmetic interface
+ This library defines generic versions of common
+ collection-related functions as multimethods that can be
+ defined for any type."}
+ clojure.contrib.generic.collection
(:refer-clojure :exclude [assoc conj dissoc empty get into seq]))
;
diff --git a/src/clojure/contrib/generic/comparison.clj b/src/clojure/contrib/generic/comparison.clj
index 237a8e98..dbed2926 100644
--- a/src/clojure/contrib/generic/comparison.clj
+++ b/src/clojure/contrib/generic/comparison.clj
@@ -1,7 +1,7 @@
;; Generic interfaces for comparison operations
;; by Konrad Hinsen
-;; last updated March 23, 2009
+;; last updated May 3, 2009
;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -11,15 +11,13 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns clojure.contrib.generic.comparison
- "Generic comparison interface
-
- NOTE: This library is VERY experimental. It WILL change significantly
- with future release.
-
- This library defines generic versions of = < > <= >= zero? as multimethods
- that can be defined for any type. Of the greater/less-than relations,
- types must minimally implement >."
+(ns
+ #^{:author "Konrad Hinsen"
+ :doc "Generic comparison interface
+ This library defines generic versions of = < > <= >= zero?
+ as multimethods that can be defined for any type. Of the
+ greater/less-than relations, types must minimally implement >."}
+ clojure.contrib.generic.comparison
(:refer-clojure :exclude [= < > <= >= zero?])
(:use [clojure.contrib.generic
:only (root-type nulary-type nary-type nary-dispatch)]))
diff --git a/src/clojure/contrib/generic/functor.clj b/src/clojure/contrib/generic/functor.clj
index 8611916f..9faf4603 100644
--- a/src/clojure/contrib/generic/functor.clj
+++ b/src/clojure/contrib/generic/functor.clj
@@ -1,7 +1,7 @@
;; Generic interface for functors
;; by Konrad Hinsen
-;; last updated March 23, 2009
+;; last updated May 3, 2009
;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -11,8 +11,10 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns clojure.contrib.generic.functor
- "Generic functor interface")
+(ns
+ #^{:author "Konrad Hinsen"
+ :doc "Generic functor interface (fmap)"}
+ clojure.contrib.generic.functor)
(defmulti fmap
diff --git a/src/clojure/contrib/generic/math_functions.clj b/src/clojure/contrib/generic/math_functions.clj
index 77623cce..3eebe938 100644
--- a/src/clojure/contrib/generic/math_functions.clj
+++ b/src/clojure/contrib/generic/math_functions.clj
@@ -1,7 +1,7 @@
;; Generic interfaces for mathematical functions
;; by Konrad Hinsen
-;; last updated March 23, 2009
+;; last updated May 3, 2009
;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -11,14 +11,13 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns clojure.contrib.generic.math-functions
- "Generic math function interface
-
- NOTE: This library is VERY experimental. It WILL change significantly
- with future release.
-
- This library defines generic versions of common mathematical functions
- such as sqrt or sin as multimethods that can be defined for any type."
+(ns
+ #^{:author "Konrad Hinsen"
+ :doc "Generic math function interface
+ This library defines generic versions of common mathematical
+ functions such as sqrt or sin as multimethods that can be
+ defined for any type."}
+ clojure.contrib.generic.math-functions
(:use [clojure.contrib.def :only (defmacro-)])
(:require [clojure.contrib.generic.arithmetic :as ga]
[clojure.contrib.generic.comparison :as gc]))