Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new package sequence/generator #7

Open
kamilsk opened this issue Mar 16, 2020 · 1 comment
Open

new package sequence/generator #7

kamilsk opened this issue Mar 16, 2020 · 1 comment
Assignees
Labels

Comments

@kamilsk
Copy link
Member

@kamilsk kamilsk commented Mar 16, 2020

The concept:

sequence := new(integer.generator).Since(10).Rhythm(func (int64) int64).Until(10^5)

for range sequence.Source() { ... } // math.MaxInt64 by default

sequence.Next() bool

sequence.Current() int64

sequence.FastForward(int64) bool
uid := new(uuid.generator)

uid.Next() string ?
random := new(rand.generator)

random.Next() ?
@kamilsk kamilsk self-assigned this Mar 16, 2020
@kamilsk

This comment has been minimized.

Copy link
Member Author

@kamilsk kamilsk commented Mar 21, 2020

@kamilsk kamilsk added the help wanted label Mar 23, 2020
kamilsk added a commit that referenced this issue Mar 23, 2020
kamilsk added a commit that referenced this issue Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.