A simple implementation of complex numbers in Clojure. Requires Clojure >= 1.6.
Leiningen: [com.gfredericks/z "0.1.3"]
(ns my.things
(:refer-clojure :exclude [+ - * /])
(:require [com.gfredericks.z :as z :refer [+ - * /]]))
(+ (*) (*)) ;; => 2+0i
Copyright © 2014 Gary Fredericks
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close