enumerable4j
enumerable4j copied to clipboard
Amazing Ruby's "Enumerable" ported to Java
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade org.cactoos:cactoos from 0.49 to 0.50.1. :information_source: Keep your dependencies up-to-date....
i think it would be a good idea to add support of Joined instance for all methods with the `(Predicate, Predicate...)` signature: ```java all(Joined) ```
Now Joined is a compound predicate that represents a short-circuiting logical AND of all given predicates. We need some method/inner class for logical OR. I suggest using static classes: ```java...
```java public boolean any(Predicate first, Predicate ... other); public boolean all(Predicate first, Predicate ... other); public Enumerable select(Predicate first, Predicate ... other); ```
```java public final class Joined implements Predicate { public Joined(Predicate first, Predicate ... other) { ... } ... } ```
The same as the java8 flapMap stream API method. https://ruby-doc.org/core-2.6/Enumerable.html#method-i-flat_map
Actual result: ```java default Enumerable after(Predicate prd, long size) { final Enumerable out; if (size < 0) { throw new IllegalArgumentException(Long.toString(size)); } else if (size == 0) { out =...
https://github.com/eclipse/eclipse-collections
The puzzle `DEV-5f4df571` from #DEV has to be resolved: https://github.com/dgroup/enumerable4j/blob/373ea3416dae428b40bd3adfefb4c0f847807ab0/pom.xml#L196-L196 The puzzle was created by @dgroup on 06-Mar-21. role: DEV. If you have any technical questions, don't ask me, submit...