fasterthanlime / shin

:warning: (def shin (dissoc clojurescript :jvm :google_closure)) (deprecated)
MIT License
35 stars 1 forks source link

Multiple arity dispatch #44

Closed fasterthanlime closed 9 years ago

fasterthanlime commented 9 years ago

Probably not the right name for it, but I know what I mean.

Example:

(defn f
  ([x] "1")
  ([x y] "2")
  ([& xs] "variadic"))
(f nil)
(f nil nil)
(f nil nil nil)
fasterthanlime commented 9 years ago

Still missing for protocols.