• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaFolds / Transducers.jl / 1852 / 3
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2020 04:49AM UTC
Files 26
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jul 2020 04:32AM UTC coverage: 64.749% (-21.0%) from 85.79%
JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true

push

travis-ci-com

web-flow
Add foldxl, foldxt and foldxd (#369)

This PR adds `foldxl`, `foldxt` and `foldxd` as the new (experimental)
entry points for calling the extended folds defined in Transducers.jl.
The plan is to deprecate `reduce` and `dreduce` in favor of `foldxt`
and `foldxd`.

* Motivation for dedicated entry points

Often times I need to add `Map(identity)` just to dispatch to the
fold defined in Transducers.jl (e.g,
`foldl(TeeRF(min, max), Map(identity), xs)`).  Adding
Transducers.jl-specific entry points like `foldxd` makes
`Map(identity)` unnecessary.  Furthermore, decoupling entry point
from `Base.foldl` let us have a curried version
`itr |> xf |> foldxl(+)` which is quite useful with the new `|>`
pattern.

* Motivation for deprecating `reduce`

* As of #72, `sum(foldable)` calls `foldl(add_sum, foldable)` and
not `reduce(add_sum, foldable)`.  This could be a bit surprising
since `sum` usually calls `reduce`.

* The `Base` implementation of `reduce` is not threaded.  So, using
it for calling multi-threaded implementation can be confusing.

889 of 1373 relevant lines covered (64.75%)

16548.79 hits per line

Source Files on job 1852.3 (JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true)
  • Tree
  • List 0
  • Changed 24
  • Source Changed 1
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1578
  • Travis Job 1852.3
  • e0e76635 on github
  • Prev Job for JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true on master (#1845.2)
  • Next Job for JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true on master (#1854.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc