totally_lazy 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/readme.md +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzdmNWE5MWRmM2RiMTRiNjgzM2IxMjI2YTllZGExZDFmOWZlY2ZkMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2U5OTRjZGJkYjBiNjVkZjZmZGI4NjViZDJhNTVmYzQyZjcwNTQ4OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzIxZDBkNTM0ZjEwODNkYTY4YTI1NGIzOGNlODJhN2Q4MTdjNTQ2OTJmZjRi
|
10
|
+
YmM4ZmZkYjk0NjM2ZjYwN2RiYjBhYjY3OWExOTJkZGY0ZmIyMWQ0ZjNlZDli
|
11
|
+
Mjc1ZjI2YTRmZmE4YzZhNGM1ZGU2MDQxZGU2YTA0ZDI2ZmQwZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjIxMmYzODkzMzA4YjljYmFjZDBmYWVjYWI2MTE0OTFiNzgzM2Y4OWFjZTJi
|
14
|
+
NzE2YjIzM2E5ODJlNmQ1M2FiNDM0ZGY5YzUwNDhkMDBjODYzNWY5ODM3YmNh
|
15
|
+
MTA2ZWUxMTU0YmE5ZjM4ZGM5ZGI4Njk2ZWE3N2NjNWNkNGVjZmM=
|
data/readme.md
CHANGED
@@ -61,7 +61,7 @@ sequence(1, 2, 3).to_s # eagerly returns "[1,2,3]"
|
|
61
61
|
|
62
62
|
```ruby
|
63
63
|
range(1, 4) # lazily returns 1,2,3,4
|
64
|
-
repeat(
|
64
|
+
repeat('car') # lazily returns an infinite sequence of 'car's
|
65
65
|
enumerate(increment, 1) # lazily returns 1,2,3 ... to infinity
|
66
66
|
range(1, 4).cycle() # lazily returns 1,2,3,4,1,2,3,4,1,2,3,4 infinitely
|
67
67
|
powers_of(3) # lazily returns the powers of 3 (i.e 1,3,9,27 ...)
|
@@ -74,3 +74,7 @@ enumerate(increment, 1).filter(even).take(10).reduce(sum) # returns 110
|
|
74
74
|
```
|
75
75
|
|
76
76
|
And because all the operations except reduce are lazy the sequence of numbers is only processed once.
|
77
|
+
|
78
|
+
### License
|
79
|
+
|
80
|
+
[Apache 2](http://www.apache.org/licenses/LICENSE-2.0)
|