Skip to content

Last snapshots taken from https://github.com/UnofficialJuliaMirror/Transducers.jl-28d57a85-8fef-5791-bfe6-a80928e7c999 on 2019-11-20T12:01:29.172-05:00 by @UnofficialJuliaMirrorBot via Travis job 153.34 , triggered by Travis cron job on branch "master"

License

Notifications You must be signed in to change notification settings

UnofficialJuliaMirrorSnapshots/Transducers.jl-28d57a85-8fef-5791-bfe6-a80928e7c999

Repository files navigation

Transducers.jl: Efficient transducers for Julia

Stable documentation Latest documentation Travis Status codecov.io Coverage Status

Transducers.jl provides composable algorithms on "sequence" of inputs. They are called transducers, first introduced in Clojure language by Rich Hickey.

Using transducers is quite straightforward, especially if you already know similar concepts in iterator libraries:

using Transducers
xf = Partition(7) |> Filter(x -> prod(x) % 11 == 0) |> Cat() |> Scan(+)
foldl(+, xf, 1:40)

However, the protocol used for the transducers is quite different from iterators and results in a better performance for complex compositions. Furthermore, some transducers support parallel execution. If a transducer is composed of such transducers, it can be automatically re-used both in sequential (foldl etc.) and parallel (reduce etc.) contexts.

See more in the documentation.

Installation

]add Transducers

About

Last snapshots taken from https://github.com/UnofficialJuliaMirror/Transducers.jl-28d57a85-8fef-5791-bfe6-a80928e7c999 on 2019-11-20T12:01:29.172-05:00 by @UnofficialJuliaMirrorBot via Travis job 153.34 , triggered by Travis cron job on branch "master"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages