Skip to content

Instantly share code, notes, and snippets.

@jonase
Created October 24, 2012 18:45
Show Gist options
  • Save jonase/3948008 to your computer and use it in GitHub Desktop.
Save jonase/3948008 to your computer and use it in GitHub Desktop.

Revisions

  1. jonase created this gist Oct 24, 2012.
    9 changes: 9 additions & 0 deletions gistfile1.clj
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    (defmulti foo identity)

    (defmethod foo 1 [n]
    (recur (dec n)))

    (defmethod foo 0 [n]
    :ok)

    (foo 1) ;; runs forever