The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Exploring Sequences and Range() in Immutable.js

Exploring Sequences and Range() in Immutable.js

6:59
Understanding Immutable.js's Map() and List() structures will likely take you as far as you want to go with immutable programming. They have only small semantic differences between each other and the remaining structures in the Immutable.js family. Sequence, however, has one major difference: it's lazy--which opens a new realm of functional possibilities. Let's write a simple sequence to start.
Watch this lesson now
Avatar
egghead.io

Understanding Immutable.js's Map() and List() structures will likely take you as far as you want to go with immutable programming. They have only small semantic differences between each other and the remaining structures in the Immutable.js family. Sequence, however, has one major difference: it's lazy--which opens a new realm of functional possibilities. Let's write a simple sequence to start.

Avatar
Noah

I am not sure why you call the sequences 'powers' of two. Aren't they just multiples of two? I mean, you simply multiply each member of the sequence by two?

In reply to egghead.io
Avatar
J.S.

Hey Noah. You are right, I meant multiples. :)

In reply to Noah
Avatar
Jacek Kolasa

All those tiny mistakes... it's great if this is a video on YT, but it's a paid service.... also it makes the content less credible, unfortunately.

In reply to J.S.
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?