Commit graph

68 commits

Author SHA1 Message Date
Christophe Grand
9808cc8555 fix #31 -- but should be fixed on the CLJS side 2019-09-09 12:55:03 +02:00
Christophe Grand
e9361072c1 0.19.0 add x/time 2018-11-14 14:06:06 +01:00
Timothy Jones
521e08b547
Remove reflection warnings from min/max rfs 2018-08-29 14:18:03 -04:00
Christophe Grand
545b97ddf8 min (resp. max) now treats s as their absolute maximum (resp. minimum), so rf/min and rf/max are now associative and practically s are ignored. 2018-06-15 18:15:50 +02:00
Christophe Grand
0410484f90 v0.18.1: new avg semantics on empty inputs (emits nil) 2018-06-13 23:08:05 +02:00
Christophe Grand
bae87d1b50 x/avg and rfs/avg return nil when no input 2018-06-13 23:02:12 +02:00
Timothy Jones
284203079a
Resolve reflection warnings on ArrayDeque 2018-04-20 11:02:43 +12:00
Christophe Grand
f2165ba932 xio/sh produces reducible collections 2018-04-16 23:08:27 +02:00
Christophe Grand
7c048e11bb 0.16.0: 2-arg x/str is now a string-producing transducing context. Adds x/wrap.
Also change documentation to use the term aggregator for 1-item-out transducers.
2018-01-25 10:41:36 +01:00
Christophe Grand
82c7c1fff2 v0.15 stream.Transformer 2017-11-16 18:53:46 +01:00
Christophe Grand
c52dc4c873 v0.14: add sort & sort-by 2017-11-16 16:58:34 +01:00
Christophe Grand
0515b711df 0.13.0 x/without, the opposite of x/into: dissoc/disj'ing instead of conj'ing. 2017-10-26 18:11:19 +02:00
Christophe Grand
023ca6043e Fix issue with iterator
When there was only 1-item produced by an aggregating xform .hasNext was returning false.
2017-10-19 11:38:19 -05:00
Christophe Grand
5017069c7a docstring fix 2017-10-18 19:34:22 -05:00
Christophe Grand
6145006946 Fix non-completion bug in iterator 2017-10-18 19:33:57 -05:00
Christophe Grand
51b61f3889 Add the iterator transducing context 2017-10-18 14:39:50 -05:00
Christophe Grand
b96d9d7994 Make kvrf smarter: can infer arity 2 from and 3 from 2 2017-10-18 14:39:15 -05:00
Christophe Grand
899154c0df xforms 0.11.0, with xio/sh to use any shell process as a transducer 2017-10-05 13:23:40 +02:00
Christophe Grand
89d384ce74 Make 3+-arg arities of edn-out and lines-out to be transducing contexts. 2017-10-05 10:31:53 +02:00
Christophe Grand
ea7a3e699d 0.10.1 fix edn-out and add documentation on edn-in 2017-10-04 15:58:50 +02:00
Christophe Grand
809f8f709b xforms 0.10.0: new io namespace, some as a transducing context (and a rf) too 2017-10-04 15:46:25 +02:00
Christophe Grand
8f04ad0748 Make x/for to unroll some reductions
When an expression in collection position in `x/for` is a collection literal with less than 4 items (or tagged with `^:unroll`) then the collection is not allocated and the reduction over it is unrolled.
2017-09-19 17:26:11 +02:00
Christophe Grand
8f9b954a2b 0.9.4: add x/into-by-key, shorthand for (comp (x/by-key ..) (x/into ..)) 2017-09-12 16:29:42 +02:00
Christophe Grand
5025e583f2 Fix #14: no call to downstream complete with padded partition when there's no incomplete partition 2017-04-04 09:36:35 +02:00
Christophe Grand
362febaf5f for was not emitting kv pairs in cljs because of extra compiler metadata, fix #13 2017-03-28 16:25:35 +02:00
Christophe Grand
5ea2d1b3d3 x/str was documented but not in the repo 2017-02-25 03:44:49 +01:00
Christophe Grand
64eb4c6158 v0.9.0 add take-last and drop-last 2017-02-02 13:16:51 +01:00
Christophe Grand
8a9d383198 v0.8.3: fix #10 (and another bug in padded partition) and update doc 2017-01-26 13:50:10 +01:00
Christophe Grand
6047563033 using Welford formula for sd 2017-01-09 16:38:55 +01:00
Christophe Grand
d1f721883a Add x/sd and rf/sd for standard deviation 2017-01-05 15:41:15 +01:00
Christophe Grand
d4f0280bb5 use macros/replace 2017-01-05 15:40:46 +01:00
Christophe Grand
0422678643 fix typo in docstring 2017-01-05 15:38:40 +01:00
Christophe Grand
e1d2d6c848 fix port bug.perf issue in cljs: transient code path was never taken. 2016-12-19 14:18:01 +01:00
Christophe Grand
cffd76298b near total port (window-time is missing) 2016-12-16 14:52:59 +01:00
Christophe Grand
c084089681 fix weird bug in alias resolution 2016-12-15 17:49:23 +01:00
Christophe Grand
bae1a9d1ad WIP cljc conversion, basics (like (x/into {} (x/by-key odd? (x/reduce +)) (range 10))) work 2016-12-15 17:39:28 +01:00
Christophe Grand
a4a5e6a8df Preserve type hints 2016-12-08 16:28:46 +01:00
Christophe Grand
d16bd380fa x/count can now be used as a transducing context (x/count xform coll). /cc @iig 2016-12-08 12:02:29 +01:00
Christophe Grand
8d393365c3 0.6.0 x/reductions and extend behavior of x/for 2016-12-02 16:27:59 -06:00
Christophe Grand
dfd401f647 fix missing alias 2016-11-03 09:43:49 -05:00
Christophe Grand
8d240ed6ef Several bug fixes, improved state cleanup on completion, move rfs to a separate namespace, new transducers: avg, min, minimum, max, maximum, last, str 2016-11-03 09:34:18 -05:00
Christophe Grand
596ee03918 Remove x/pad and x/first; add x/multiplex; fix several issues with reduced handling 2016-10-10 17:11:45 +02:00
Christophe Grand
2eb63f6578 removing (( 2016-10-06 09:50:47 +02:00
Christophe Grand
6dd8e937d3 tightening code around kvrfs, x/for now leverages kvreducibles on inner colls 2016-09-19 14:37:35 +02:00
Christophe Grand
05a82e2b74 count is now a transducer 2016-09-19 14:36:26 +02:00
Jason Felice
d42e1240e5 Fix for "&" 2016-09-18 13:08:46 -04:00
Christophe Grand
a10df4554e More kv support, version bump and avg fix 2016-06-03 10:49:27 +02:00
Christophe Grand
219e7d2aac Makes x/for to support kvs in and out, remove tag and map-kv (replaced by for) 2016-06-01 10:28:08 +02:00
Christophe Grand
24b2397d76 Adds window-by-time 2016-05-24 15:50:48 +02:00
Christophe Grand
c913617aa1 Make the (fn [rf] ...) in by-key to not depend on function equality because it creates headaches when deserializing the function in aother env. 2016-04-21 16:14:48 +02:00