资源算法Transducers.jl

Transducers.jl

2020-01-17 | |  94 |   0 |   0

Transducers.jl: Efficient transducers for Julia

Stable documentationLatest documentationTravis Statuscodecov.ioCoverage StatusAqua QA

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


上一篇:redux-transducers

下一篇:transducers-ruby

用户评价
全部评价

热门资源

  • allennlp-server

    allennlp-server Serve allennlp services as sep...

  • ubuntu-allennlp

    ubuntu-allennlp AllenAI AllenNLP image based o...

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...