It looks nice; details here.
CONTENTS
Meta
It looks nice; details here.
(ns power.examples) (defn non-acc-pow [base exp] (if (zero? exp) 1 (* base (non-acc-pow base (dec exp))))) (defn acc-pow [base exp] (letfn [(loop [base exp acc] (if (zero? exp) acc (recur base (dec exp) (* base acc))))] (loop base exp 1))) (defn lazy-pow [base exp] (letfn [(loop [cur] (cons cur (lazy-seq (loop (* [...]
While trying to set up Clojure under Cygwin I found that doing mixed-mode between Cygwin and Java isn’t very happy due to the ‘;’ vs ‘:’ in the classpath. This post (via this post) provided an obfuscated Ruby program to take care of that for you… thanks! #!/bin/ruby # Slightly obfuscated cygwin + windows java [...]
ParEdit (paredit.el) is a minor mode for performing structured editing of S-expression data. The typical example of this would be Lisp or Scheme source code. ParEdit helps keep parentheses balanced and adds many keys for moving S-expressions and moving around in S-expressions. That quote from EmacsWiki really undersells Paredit, though. Paredit makes it virtually impossible [...]
Swing is the GUI standard for Java. Clojure is the awesomeness standard for Java. (via Stuart)
In this post Alex shares his patch for adding Clojure support to the excellent LaTeX listings package.
Here is an article about a “position paper of sorts that Rich Hickey has posted on Clojure’s Approach to Identity and State”. (via LtU)