Clojure sequences are lazy by default. That gives you big benefits like separation of concerns, but it also brings with it some gotchas. This course is mostly about exploring those gotchas--problems that can bite you if you're not ready for them--and techniques to work with each one. Being prepared is the best antidote to a bad bite. After dealing with the downsides, we explore the big benefits.

Want this course?

Team License

$200
  • HD Download
  • Watch Online
  • Lifetime Access
  • For your company

Download License

$24
  • HD Download
  • Watch Online
  • Lifetime Access
  • For an individual

Online License

$18
  • Watch Online
  • Lifetime Access
  • For an individual

Membership

$49/mo
  • HD Downloads
  • Watch Online
  • Full access
  • All Content
  • For an individual
Get access

Love it or leave it guarantee

If you don't learn as much from this course as you thought, just ask for a refund within 30 days and I'll give you your money back.

Lazy Sequences

Lessons

Video time: 34m13s

0 / 6

What are lazy sequences?
  • 5 min
  • free

This lesson introduces lazy sequences. This lesson includes a video with visual aids. The video lesson is 6 minutes long.

Gotcha: Effects and chunking
  • 3 min
  • free

This lesson teaches the care needed when mixing effects and laziness, as well as what chunking is. This lesson includes a video screencast with slides and exercises. The video is 5 minutes long, and the exercises might take 10 minutes.

Gotcha: *print-length*
  • 3 min

How to use print-length to avoid printing very long lists. This lesson includes a video screencast and an exercise. The video is 3 minutes long.

Gotcha: holding onto the head
  • 7 min

Got an out of memory error? It could be a common gotcha with lazy sequences. A screencast and some code are included. The video is 8 minutes long.

Gotcha: length checks
  • 4 min

This lesson teaches how to check the length of all sequences, including infinite ones. It includes a screencast and some sample code. The video is four minutes long.

The Benefits of Laziness
  • 11 min

This lesson teaches the biggest benefit of lazy sequences, which is of separating the concerns of how to generate elements from what to do with them. This lesson includes a video screencast. This lesson includes a video screencast.