killme2008/defun
View on GitHub ↗ ★ 502 Clojure
A macro to define clojure functions with parameter pattern matching just like erlang or elixir.
4 mentions on Hacker News by 3 people: 1 story, 3 comments · first 2015-11-18 · latest 2026-04-02
20082026
-
…productive languages I've used, and I still miss the REPL-driven workflow. One thing I built: defun https://github.com/killme2008/defun -- a macro for defining Clojure functions with pattern matching, Elixir-style. Still probably my…
comment by killme2008 · 2026-04-02 · in Bringing Clojure programming to Enterprise (2021) -
…definition in Elixir. :) https://github.com/clojure/core.match -- pattern matching as a library https://github.com/killme2008/defun -- using core.match to implement Elixir/Erlang-like function definition https://github.com/noprompt/meander…
comment by tekacs · 2021-07-17 · in Elixir protocols vs. Clojure multimethods -
…([0] 0) ([1] 1) ([n] (+ (fib (- n 1)) (fib (- n 2))))) Then: (fib 10) ;;=> 55 Cool isn't it! [1] https://github.com/killme2008/defun
comment by escherize · 2015-11-18 · in Erlang beauty