Hi,
I found out that `Collectors.joining()` can be simplified as follows:
1) `` reduced to `<>`
2) `(r1, r2) -> { r1.append(r2); return r1; }` replaced with
`StringBuilder::append`
If such a small contribution is considered worthwhile, please sponsor it
(patch below).
Regards,
Tomasz
ps://blog.tlinkowski.pl/2018/transformer-pattern/
Regards,
Tomasz Linkowski
On Fri, Sep 21, 2018 at 12:42 PM Remi Forax wrote:
> - Mail original -
> > De: "Alan Bateman"
> > À: "Jim Laskey" , "core-libs-dev" <
> core-libs-dev@openjdk.jav
ds) nor by `applyMutation`
(confusing, like Tagir said).
On a side note: regardless of the name, I bet we'll see some
`string.transform(String::toLowerCase)` or `stream.chain(s->s.map(mapper))`
:)
Regards,
Tomasz Linkowski
On Mon, Dec 3, 2018 at 12:32 PM Tagir Valeev wrote:
> +1 to Stephen a
non-null.
Regards,
Tomasz Linkowski
On Fri, Oct 26, 2018 at 5:44 PM Tomasz Linkowski
wrote:
> Hi,
>
> Please, consider adding a new static method to the `Stream` interface
> (names TBD):
>
> static Stream iterateWhile(
> T seed, Function>
> m
ava.util.function.Function)
[3]
http://mail.openjdk.java.net/pipermail/amber-spec-experts/2018-October/000826.html
--
Regards,
Tomasz Linkowski
Stream.of(specialElement).append(remainingStream).collect(toList());
has better "flow" than
Stream.concat(Stream.of(specialElement),
remainingStream).collect(toList());
Regards,
Tomasz Linkowski
On Mon, Oct 15, 2018 at 4:51 AM Tagir Valeev wrote:
> Hello!
>
> Still from
ES, well-named: YES
Personally, I don't find n-ary *homogeneous* Collector composition that
much useful, but if it were to be added, I agree List would be the best
result type.
Regards,
Tomasz Linkowski
[1] https://stackoverflow.com/a/52211175/2032415
On Sun, Sep 16, 2018 at 11:23 AM, Tagir
th wordwise and letterwise). On the other hand, it seems that
"collectingBothAndThen" could be much easier to understand than
"duplexing", especially for non-natives.
Regards,
Tomasz Linkowski
On Fri, Sep 14, 2018 at 9:11 PM, Federico Peralta Schaffner <
federico.pera...@g
but "Collectors.compositing" looks a bit strange.
"Collectors.composing" seems much better to me, but - as far as I
understand - there was some concern that the users could misunderstand it
as element-wise composition, is that right?
Regards,
Tomasz Linkowski
[1] https://en.wikipedi
om/help/idea/running-inspection-by-name.html
It will fix all such C-style array declarations for you automatically.
--
Regards,
Tomasz Linkowski
From: Stuart Marks
> To: "ullenb...@gmail.com"
> Cc: "core-libs-dev@openjdk.java.net"
> Bcc:
> Date: Tue, 11 Sep 2018
.html
[5]
http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-August/054736.html
[6]
http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-August/054724.html
[7]
http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-August/054949.html
--
Regards,
Tomasz Linkowski
11 matches
Mail list logo