This is an attempt to add smalltalk-like streams to Moose. It currently works with ArrayRefs and HashRefs.
The next method provides the next item in the colletion.
For arrays it returns the element of the array
For hashs it returns a pair as a hashref with the keys: key and value
The has_next method is a boolean method that is true if there is another item in the colletion after the current item. and falue if there isn't.
The peek method returns the next item without moving the state of the iterator forward. It returns undef if it is at the end of the collection.
Resets the cursor, so you can iterate through the elements again.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.11-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.11-bp155.2.9 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
0.11-bp154.1.18 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.11-bp153.1.12 info | GA Release | 2021-02-25 | 15 SP3 |
|
|
0.11-bp152.3.14 info | GA Release | 2020-04-17 | 15 SP2 |
|
|
0.11-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
0.11-bp151.2.11 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.11-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|