You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: changes.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ Many existing sequence functions now have a new arity (one fewer argument
16
16
than before). This arity will return a transducer that represents the same
17
17
logic but is independent of lazy sequence processing. Functions included are:
18
18
19
-
* conj (conjs to [])
20
19
* map
21
20
* mapcat
22
21
* filter
@@ -38,7 +37,7 @@ logic but is independent of lazy sequence processing. Functions included are:
38
37
Additionally some new transducer functions have been added:
39
38
40
39
* cat - concatenates the contents of each input
41
-
*de-dupe - removes consecutive duplicated values
40
+
*dedupe - removes consecutive duplicated values
42
41
* random-sample - returns items from coll with random probability
43
42
44
43
And this function can be used to make completing transforms:
@@ -51,12 +50,12 @@ transducers in different ways:
51
50
* sequence - takes a transformation and a coll and produces a lazy seq
52
51
* transduce - reduce with a transformation (eager)
53
52
* eduction - returns a reducible/iterable of applications of the transducer to items in coll. Applications are re-performed with every reduce/iterator.
54
-
* run! - run the transformation for side effects on the collection
55
53
56
54
There have been a number of internal changes to support transducers:
57
55
58
56
* volatiles - there are a new set of functions (volatile!, vswap!, vreset!, volatile?) to create and use volatile "boxes" to hold state in stateful transducers. Volatiles are faster than atoms but give up atomicity guarantees so should only be used with thread isolation.
59
57
* array iterators - added support for iterators over arrays
58
+
* conj can be used as a reducing function and will conj to []
0 commit comments