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

netceteragroup / girders-elements / 255
83%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2017 06:52PM UTC
Jobs 1
Files 66
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

pending completion
255

push

travis-ci

web-flow
feat(core): Implement reduce for zippers (#88)

Adds the following methods in `zip` (they are curried):
```javascript
declare function reduce<T>(
  fn: (acc: T, item: any) => T,
  initialAcc: T,
  zipper: Zipper
): T
```
```javascript
declare function reducePre<T>(
  fn: (acc: T, item: any) => T,
  initialAcc: T,
  zipper: Zipper
): T
```
These functions preform a reduction of the zipper tree in post (`reduce`) or pre (`reducePre`) order.

Also, the following method is added in `data`:
```javascript
declare function when<T>(
  pred: (item: any) => Boolean),
  fn: (acc: T, item: any) => T
): (acc: T, item:any) => T
```
It helps writing zip reducing using a predicate.

Closes #82

303 of 460 branches covered (65.87%)

6 of 6 new or added lines in 2 files covered. (100.0%)

766 of 922 relevant lines covered (83.08%)

44.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 255.1 30 Dec 2017 06:52PM UTC 0
83.08
Travis Job 255.1
Source Files on build 255
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #255
  • 3396a418 on github
  • Prev Build on master (#251)
  • Next Build on master (#259)
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