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

Implement to_a as a companion to first and last on reader API #496

Closed
mostlyobvious opened this issue Nov 22, 2018 · 0 comments
Closed

Implement to_a as a companion to first and last on reader API #496

mostlyobvious opened this issue Nov 22, 2018 · 0 comments
Assignees

Comments

@mostlyobvious
Copy link
Member

It is not unfrequent to see event_store.read.stream('some_stream').each.to_a whenever you want fetch events besides iterating on them.

We've added first and last already for convenience, this seems like a good addition too. We've debated whether to include whole Enumerable before. I doubt now we need all of Enumerable and that is achievable via each returning Enumerator anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants