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

JuliaFolds / Transducers.jl / 1852
93%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2020 04:46AM UTC
Jobs 3
Files 26
Run time 2min
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

pending completion
1852

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.

1236 of 1334 relevant lines covered (92.65%)

4133985.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1852.1 (JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true) 25 Jul 2020 04:46AM UTC 0
85.01
Travis Job 1852.1
2 1852.2 (JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true) 25 Jul 2020 04:47AM UTC 0
85.87
Travis Job 1852.2
3 1852.3 (JULIA_NUM_THREADS=2 COVERALLS_PARALLEL=true) 25 Jul 2020 04:49AM UTC 0
64.75
Travis Job 1852.3
Source Files on build 1852
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1852
  • e0e76635 on github
  • Prev Build on master (#1845)
  • Next Build on master (#1854)
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