RE: Methods removeFirstIf in Collection and skipFirst in Stream

2021-07-02 Thread Alberto Otero Rodríguez
viado: viernes, 2 de julio de 2021 19:59 Para: Alberto Otero Rodríguez Cc: core-libs-dev Asunto: Re: Methods removeFirstIf in Collection and skipFirst in Stream Hello! It's unclear why one might need methods like this. Could you please provide any real life use cases when such methods c

Re: Methods removeFirstIf in Collection and skipFirst in Stream

2021-07-02 Thread Tagir Valeev
docs/api/java.base/java/util/stream/Stream.html>> > predicate) > > De: Alberto Otero Rodríguez > Enviado: viernes, 2 de julio de 2021 16:22 > Para: core-libs-dev@openjdk.java.net > Asunto: Methods removeFirstIf in Collection and skipFirst in St

RE: Methods removeFirstIf in Collection and skipFirst in Stream

2021-07-02 Thread Alberto Otero Rodríguez
n/java/javase/16/docs/api/java.base/java/util/stream/Stream.html>> predicate) De: Alberto Otero Rodríguez Enviado: viernes, 2 de julio de 2021 16:22 Para: core-libs-dev@openjdk.java.net Asunto: Methods removeFirstIf in Collection and skipFirst in Stream Hi,

Methods removeFirstIf in Collection and skipFirst in Stream

2021-07-02 Thread Alberto Otero Rodríguez
Hi, I think it would be interesting adding the following methods: 1) In Collection: default boolean removeFirstIf​(Predicatehttps://docs.oracle.com/en/java/javase/16/docs/api/java.base/java