Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    This: (1) breaks on large or infinite streams; (2) is slow because the underlying array is rebuilt repeatedly ($c' := c + (c >> 1)$); (3) produces a raw List; (4) would disrupt an otherwise highly readable fluent style; and (5) doesn't answer the question and sounds dismissive (not that that was the intent, but "gods sake" isn't helpful). Commented May 12, 2024 at 20:57