<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 24/04/07 9:11 AM, Viktor Klang
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:MW4PR10MB5774C9305240C4692DACCFB0FF012@MW4PR10MB5774.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Ernie,</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
"Many" in this case refers to "N", which is "0 ... N", </div>
</blockquote>
OK, I was wondering about "many" including "0".<br>
<blockquote type="cite"
cite="mid:MW4PR10MB5774C9305240C4692DACCFB0FF012@MW4PR10MB5774.namprd10.prod.outlook.com">
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">so
I'd say while it is techincally correct as-is, perhaps more
precise would be to say "1-to-0..1" gatherer, since for every
element in, there is 0 or 1 element out.</div>
</blockquote>
I see.<br>
<blockquote type="cite"
cite="mid:MW4PR10MB5774C9305240C4692DACCFB0FF012@MW4PR10MB5774.namprd10.prod.outlook.com">
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many-to-one would be 0..N -> 1, which means that an empty
input would </div>
</blockquote>
"could" not "would"?<br>
<blockquote type="cite"
cite="mid:MW4PR10MB5774C9305240C4692DACCFB0FF012@MW4PR10MB5774.namprd10.prod.outlook.com">
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">yield
a single output.</div>
</blockquote>
<p>Out of curiosity, is either correct technically?</p>
<p><br>
</p>
<p>Other than at initialization or finish, is it possible to have
an "empty" input?</p>
<p><br>
</p>
<p>-ernie<br>
</p>
<blockquote type="cite"
cite="mid:MW4PR10MB5774C9305240C4692DACCFB0FF012@MW4PR10MB5774.namprd10.prod.outlook.com">
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature"
style="color: inherit; background-color: inherit;">
<div
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,<br>
√</div>
<div
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><br>
</b></div>
<div
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Viktor Klang</b></div>
<div
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Software Architect, Java Platform Group<br>
Oracle</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
core-libs-dev <a class="moz-txt-link-rfc2396E" href="mailto:core-libs-dev-retn@openjdk.org"><core-libs-dev-retn@openjdk.org></a> on behalf
of Ernie Rael <a class="moz-txt-link-rfc2396E" href="mailto:errael@raelity.com"><errael@raelity.com></a><br>
<b>Sent:</b> Sunday, 7 April 2024 18:06<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:core-libs-dev@openjdk.org">core-libs-dev@openjdk.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:core-libs-dev@openjdk.org"><core-libs-dev@openjdk.org></a><br>
<b>Subject:</b> JEP 473: Stream Gatherers (Second Preview)</font>
<div> </div>
</div>
<div>
<p>This is about what might be a minor doc issue.<br>
</p>
<p>In <a class="x_moz-txt-link-freetext moz-txt-link-freetext"
href="https://openjdk.org/jeps/473" moz-do-not-send="true">https://openjdk.org/jeps/473</a>
it says<br>
</p>
<blockquote type="cite">As another example, <code>Stream::filter</code>
takes a predicate that determines whether an input element
should be passed downstream; this is simply a stateless
one-to-many gatherer.</blockquote>
Shouldn't this be "many-to-one"?
<p>-ernie</p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>