Clojure

TwitterFacebook
Get flash to fully experience Pearltrees
So, you still don't think it's worth learning Lisp? Well, you'll have to make your own decisions on how to make the best use of your valuable free time. However, Lisp really does contain some great programming ideas that you may never encounter anywhere else. http://www.landoflisp.com/

www.landoflisp.com

swannodette/enlive-tutorial - GitHub

https://github.com/swannodette/enlive-tutorial/ Though Christophe Grand’s Enlive has been around for sometime now the Clojure community has been slow to embrace this useful library. I believe this is due simply to the lack of good introductory documentation based on real examples. Please let me know if you find this tutorial useful or helpful in any way.
Since then, many things have changed in Clojure world and my posts became quite outdated. http://yusupov.com/blog/2009/basic-clojure-setup-part-1/

Basic Clojure Setup – Part 1: Installing Clojure | Telman Yusupov's Blog

http://pupeno.com/2008/10/10/how-to-create-a-clojure-application/ Update: this is not my preferred way to create a Clojure application and shouldn’t be yours either, check out Leiningen This is one of those posts that I publish partly for myself.

How to create a Clojure application | Pablo's new site

Without any further configuration, Maven will compile any clojure namespaces you include in ./src/main/clojure/ .clj and ./src/test/clojure/ .clj. https://github.com/talios/clojure-maven-plugin

talios/clojure-maven-plugin - GitHub

Clojure Programming - Wikibooks, collection of open-content textbooks

People come to Clojure from a variety of backgrounds. The purpose of this book is to help everyone get the most out of the Clojure language. It is not meant as a replacement for the documentation, found at the Clojure site . http://en.wikibooks.org/wiki/Clojure_Programming
Alternatively, The following list contains links to the offical documentation as well as Leiningen, one of the most popular tools for use in developing clojure projects. ;; clojure-mode (add-to-list 'load-path "~/opt/clojure-mode") (require 'clojure-mode) ;; swank-clojure (add-to-list 'load-path "~/opt/swank-clojure/src/emacs") (setq swank-clojure-jar-path "~/.clojure/clojure.jar" swank-clojure-extra-classpaths (list "~/opt/swank-clojure/src/main/clojure" "~/.clojure/clojure-contrib.jar")) (require 'swank-clojure-autoload) ;; slime (eval-after-load "slime" '(progn (slime-setup '(slime-repl)))) (add-to-list 'load-path "~/opt/slime") (require 'slime) (slime-setup) Open emacs and load the file. http://riddell.us/ClojureWithEmacsSlimeSwankOnUbuntu.html

ClojureWithEmacsSlimeSwankOnUbuntu

http://en.wikibooks.org/wiki/Clojure_Programming/Examples/API_Examples/Sequences#replace

Clojure Programming/Examples/API Examples/Sequences - Wikibooks, open books for an open world

user => ( replace { \ l "" } "hello world" ) ( \h \e "" "" \o \space \w \o \r "" \d ) user => ( apply str ( replace { \ l "" } "hello world" ) ) "heo word" ( defn poly-expand poly-expand [ points ] ( loop [ aa ( first points ) remaining ( rest points ) built ( empty points ) ] ( if ( empty? remaining ) ( concat built [ aa ( first points ) ] ) ( recur ( first remaining ) ( rest remaining ) ( concat built [ aa ( first remaining ) ] ) ) ) ) ) ( poly-expand ' [ a b c d ] ) - > [ a b b c c d d a ]
This page gives example usage for Clojure API function calls. http://en.wikibooks.org/wiki/Clojure_Programming/Examples/API_Examples#Maps

Clojure Programming/Examples/API Examples - Wikibooks, open books for an open world

Clojure Web Development with Ring

http://mmcgrana.github.com/2010/03/clojure-web-development-ring.html This post provides an introduction Clojure web development with Ring , a Clojure web application library. If you are just getting started with Clojure web development or if you are interested in the new Ring 0.2 release, this is a great place to start.

Object Computing, Inc. - Java News Brief - March 2009

Contents The goal of this article is to provide a fairly comprehensive introduction to the Clojure programming language. A large number of features are covered, each in a fairly brief manner.

Clojure: partial and comp | Javalobby

Clojure provides a few different options for creating functions inline: fn (or the #() reader macro ), partial, and comp.

str-utils2 API reference (clojure-contrib)

This is a library of string manipulation functions. It is intented as a replacement for clojure.contrib.str-utils. You cannot (use 'clojure.contrib.str-utils2) because it defines functions with the same names as functions in clojure.core.