-
Notifications
You must be signed in to change notification settings - Fork 68
Add a Builder data type for incremental appends #700
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
base: master
Are you sure you want to change the base?
Conversation
As per the renaming in Prelude.
| -- > extendL xs b = build xs <> b | ||
| -- | ||
| -- /Internal/ | ||
| -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Annotating with time complexity is useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the complexity is not associated with this operation as such but with the later consumption of the container. Its explained in the overall docs.
Add benchmark for Monoid builder
|
What is the idea behind builder? I believe it is related to the work you are doing on |
So that we do not depend on the semigroup instance. Ideally, we do not want a semigroup instance in streams as it is frought with performance problems when left associated. Instead, we should use the builder to compose streams.
No description provided.