Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2015 (1)
20082026
  1. …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…
  2. ▲ 3
    Define Clojure functions with parameter pattern matching just like Erlang
    story by killme2008 · 2024-08-07 · 0 comments
  3. …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…
  4. …([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