Fork me on GitHub
#test-check
<
2020-08-04
>
kenny22:08:53

Is there a facility for writing a generator that generates the next value based on the previous? e.g., similar to iterate

gfredericks22:08:57

Generators aren't meant to be aware of previously generated values. If this is part of a larger structure, you could describe that and there might be another way

kenny22:08:24

The objective is to generate a seq of dates increasing over time separated by a bounded, random amount of time.

kenny22:08:57

Trying to generate data that imitates what actual data will look like.

gfredericks22:08:54

Generate the start date and the increments, and then fmap the result to get what you're describing

👍 3