Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

80 lines (57 sloc) 1.839 kb


An optimized pattern match and predicate dispatch library for Clojure. Currently the library only implements pattern matching. It supports Clojure 1.3.0 and later as well as ClojureScript.

You can find more detailed information here.

Releases and dependency information

Latest beta: 0.2.0-beta4

Leiningen dependency information:

[org.clojure/core.match "0.2.0-beta4"]

Maven dependency information:


Example Usage

From Clojure:

(use '[clojure.core.match :only (match)])

(doseq [n (range 1 101)]
    (match [(mod n 3) (mod n 5)]
      [0 0] "FizzBuzz"
      [0 _] "Fizz"
      [_ 0] "Buzz"
      :else n)))

From ClojureScript:

  (:use-macros [clojure.core.match.js :only [match]])
  (:require [clojure.core.match]))

(doseq [n (range 1 101)]
    (match [(mod n 3) (mod n 5)]
      [0 0] "FizzBuzz"
      [0 _] "Fizz"
      [_ 0] "Buzz"
      :else n)))

For more detailed descriptions of usage please refer to the wiki.

Developer information

Copyright and license

Copyright © 2010-2013 David Nolen, Rich Hickey & contributors.

Licensed under the EPL (see the file epl.html).

Jump to Line
Something went wrong with that request. Please try again.