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

mstade / funkis / 23
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: get-in
DEFAULT BRANCH: master
Ran 05 Apr 2014 11:03PM UTC
Jobs 2
Files 31
Run time 13s
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
23

push

travis-ci

mstade
Refactored `seq` again; also added the `lim` function

The signature of `seq` is now much less smelly. The `length`
field is still around, for those lazy sequences that *do* know
their length up front (range, for instance.)

The `lim` function was added as an abstraction to the common
case of having functions that should only be callable a set
number of times. This makes it very easy (and safe!) to
implement bounded sequences, by simply limiting the number of
times the `next` function can be called. This is also used
within `seq` to limit calls to `next` in those cases that a
length is specified and the collection is lazy.

A `seq` can be lazy, not report a length, and *still* be
bounded; as is shown by `take` which doesn't report its length
even though it possibly could. This is because while it's true
that `take` has an upper bound of `n`, it may actually be less
than that in case the underlying sequence has fewer items.
I figured the principle of least surprise dictates in this
case that `take` should simply have an undefined length.

246 of 246 relevant lines covered (100.0%)

163.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23.1 05 Apr 2014 11:03PM UTC 0
100.0
Travis Job 23.1
2 23.2 05 Apr 2014 11:03PM UTC 0
100.0
Travis Job 23.2
Source Files on build 23
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #23
  • d8f1aa18 on github
  • Prev Build on lazy-seq (#20)
  • Next Build on lazy-seq (#26)
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