Skip to content
Browse files

Added some more documentation

  • Loading branch information...
1 parent d5e2734 commit 830cb5067f279432aebc1c77341329fc805b32f2 @frenchy64 frenchy64 committed Sep 1, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/match/core.clj
View
7 src/match/core.clj
@@ -80,6 +80,9 @@
;; Protocols
(defprotocol IMatchLookup
+ "Allows arbitrary objects to act like a map-like object when pattern
+ matched. Avoid extending this directly for Java Bean-ish objects, see
+ `match.java/bean-match`."
(val-at* [this k not-found]))
;; =============================================================================
@@ -203,7 +206,9 @@
;; # Patterns
;;
-(defmulti pattern-compare (fn [a b] [(type a) (type b)]))
+(defmulti pattern-compare
+ "Like `clojure.core/compare` but for comparing patterns"
+ (fn [a b] [(type a) (type b)]))
;; -----------------------------------------------------------------------------
;; ## Wildcard Pattern

0 comments on commit 830cb50

Please sign in to comment.
Something went wrong with that request. Please try again.