This commit is contained in:
Christophe Grand 2016-12-08 18:20:35 +01:00
parent a4a5e6a8df
commit 3190a96041
2 changed files with 9 additions and 3 deletions

View file

@ -14,14 +14,14 @@ They generally only make sense in the context of a higher-order transducer.
*Reducing functions* (in `net.cgrand.xforms.rfs`): `min`, `minimum`, `max`, `maximum`, `str`, `str!`, `avg`, `juxt` and `last`. *Reducing functions* (in `net.cgrand.xforms.rfs`): `min`, `minimum`, `max`, `maximum`, `str`, `str!`, `avg`, `juxt` and `last`.
Transducing context: `transjuxt` (for performing several transductions in a single pass). Transducing contexts: `transjuxt` (for performing several transductions in a single pass), `into`, `count`.
## Usage ## Usage
Add this dependency to your project: Add this dependency to your project:
```clj ```clj
[net.cgrand/xforms "0.6.0"] [net.cgrand/xforms "0.7.0"]
``` ```
```clj ```clj
@ -208,6 +208,12 @@ Evaluation count : 24 in 6 samples of 4 calls.
``` ```
## Changelog ## Changelog
### 0.7.0
* Added 2-arg arity to `x/count` where it acts as a transducing context e.g. `(x/count (filter odd?) (range 10))`
* Preserve type hints in `x/for` (and generally with `kvrf`).
### 0.6.0 ### 0.6.0
* Added `x/reductions` * Added `x/reductions`

View file

@ -1,4 +1,4 @@
(defproject net.cgrand/xforms "0.6.0" (defproject net.cgrand/xforms "0.7.0"
:description "Extra transducers for Clojure" :description "Extra transducers for Clojure"
#_#_:url "http://example.com/FIXME" #_#_:url "http://example.com/FIXME"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"