Period is a custom Time range implementation
It does have few time specific methods, like '.length', '.dayStream', '.lastDay', which are not available in general range.
- Source
- Period.scala
Def
Stream of calculated values
Stream of calculated values
Returns a stream starting with the first range value. Every next value is calculated by applying the given function to the prior value. The stream ends when the function result is no longer within range.
(1 <> 10).stepStream( _ + 3).tp // Prints: Stream(1, 4, 7, 10)