Macros for working with clojure argument threading
Pull request Compare This branch is 30 commits behind pallet:develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/pallet
test/pallet
.gitignore
README.md
ReleaseNotes.md
epl-v10.html
finish-release.sh
pom.xml
start-release.sh

README.md

pallet.thread-expr

A library containing macros for use in clojure threading expressions (using ->).

See reference documentation and annotated source.

Examples

(-> 2
  (arg-> [x]
    (* (inc x))))
(-> 1
  (for-> [x [1 2 3]]
    (+ x)))

Installation

thread-expr is distributed as a jar, and is available in the sonatype repository.

Installation is with maven or your favourite maven repository aware build tool.

lein/cake project.clj

:dependencies [[org.cloudhoist/thread-expr "1.0.0"]]
:repositories {"sonatype"
               "http://oss.sonatype.org/content/repositories/releases"}

maven pom.xml

<dependencies>
  <dependency>
    <groupId>org.cloudhoist</groupId>
    <artifactId>thread-expr</artifactId>
    <version>1.0.0</version>
  </dependency>
<dependencies>

<repositories>
  <repository>
    <id>sonatype</id>
    <url>http://oss.sonatype.org/content/repositories/releases</url>
  </repository>
</repositories>

License

Licensed under EPL

Copyright 2011 Hugo Duncan.