Commit graph

56 commits

Author SHA1 Message Date
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
Christophe Grand
45af15c69d Makes transjxut accepts any sequential collection (and not just vectors). Bump to 0.1.1 2016-04-12 14:20:22 +02:00
Christophe Grand
c50e46e970 Add standard arities to into. 2015-09-16 13:31:22 +02:00
Christophe Grand
50587dd35e rename x/just to x/first 2015-09-16 13:25:57 +02:00
Christophe Grand
378ea13118 Delay xforms applications to not share state. 2015-09-15 14:32:30 +02:00
Christophe Grand
e92feae40a Adds transducer arity to transjuxt. 2015-09-15 14:11:39 +02:00
Christophe Grand
77ca032c01 Adds transjuxt. 2015-09-15 14:08:44 +02:00
Christophe Grand
8e98bc0b2f fix missing unreduced calls in reduce 2015-09-15 14:07:09 +02:00
Christophe Grand
923a656f89 Replace simple marker protocol by conversion protocol because satisfies? has too much overhead (no cache). 2015-09-09 12:44:35 +02:00
Christophe Grand
bb9e808200 pass key and value as distinct arguments when possible 2015-09-09 11:49:07 +02:00
Christophe Grand
a759ca7e7a Add the window transducer. 2015-09-07 16:18:17 +02:00
Christophe Grand
b600288bfd Add tests (and fixes) for the intricacies of transducers impl. 2015-09-07 14:57:47 +02:00
Christophe Grand
8fb512b83a fix x/for (had a dirty repl, my bad) and put an example in the README. 2015-09-04 13:43:29 +02:00