Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34184
| Path | csiph.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Sebastian <news@seyweiler.dyndns.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: stream zip iterating with 3 streams |
| Date | Fri, 22 Apr 2016 23:10:47 +0200 |
| Organization | albasani.net |
| Lines | 23 |
| Message-ID | <nfe40o$1tb$1@news.albasani.net> (permalink) |
| References | <124daa3b-ae94-4e53-9c1b-558e0ced8712@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net MMvygeB+abcW/FvAMKTsNcxiQYJp9FkvqATS6nFWKZetA5v0uwh9U8cYeOh/+UMZ+waqbbFximxwcJS7QdISZQ== |
| NNTP-Posting-Date | Fri, 22 Apr 2016 21:10:48 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="7KbcYuEIV3ExLyY8oLFfG8uHSMsddwrB16DaaO7cDOLiEeQhQPM1cIJKN+MBZ3HcXYcIJsRrQghHXX1x0N0RABxbwpCx/fnI3t63bagTeJiqBmQCbosRFpnnwWz2hz1n"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| In-Reply-To | <124daa3b-ae94-4e53-9c1b-558e0ced8712@googlegroups.com> |
| Cancel-Lock | sha1:3xt2OVHscxuNIh8nTNXkIqDqULE= |
| Xref | csiph.com comp.lang.java.programmer:34184 |
Show key headers only | View raw
Am 22.04.2016 09:30, schrieb Philipp Kraus:
> Hello,
>
> I'm using StreamUtils.zip for iterating over two streams. I need this zip operation also for 3 streams, but I find a solution for two streams only. Did anyone know how to solve this, I would like to prefer:
>
> Stream.zip3(
> streamA,
> streamB,
> streamC,
> (a, b, c) -> {}
> );
>
> Did you create an example or did you know an useful package
>
> Thanks
>
> Phil
>
You don't mention what StreamUtils you use. But the one in Protonpack
(https://github.com/poetix/protonpack) has exactly what you want:
com.codepoetics.protonpack.StreamUtils#zip/3
-- Sebastian
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
stream zip iterating with 3 streams Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-04-22 00:30 -0700 Re: stream zip iterating with 3 streams Sebastian <news@seyweiler.dyndns.org> - 2016-04-22 23:10 +0200
csiph-web