Concatenate iterators

134 views
Skip to first unread message

costin

unread,
Aug 30, 2024, 1:33:56 PMAug 30
to golang-nuts
Is there a way to concatenate 2 iterators (other than writing my own function)? There isn't any std function I could find. Would such a function belong in the iter package (slices seems like the wrong place)?

Ian Lance Taylor

unread,
Aug 30, 2024, 1:37:01 PMAug 30
to costin, golang-nuts
On Fri, Aug 30, 2024 at 10:33 AM costin <cos...@gmail.com> wrote:
>
> Is there a way to concatenate 2 iterators (other than writing my own function)? There isn't any std function I could find. Would such a function belong in the iter package (slices seems like the wrong place)?

It would probably start out in x/exp/xiters.

Ian

costin

unread,
Aug 30, 2024, 2:14:17 PMAug 30
to golang-nuts
Thanks! That looks like a useful package.
Reply all
Reply to author
Forward
0 new messages