Playing with multidimensional arrays and method references can be tricky sometimes.
Java 8 got many things right and some not – apart from commonly recognized Java 8 caveats, there are a few which feel especially wrong.
Handling checked exceptions in lambda expressions can be often frustrating. Luckily, there is a type inference rule that we can exploit… Continue reading
The tricky thing about working with PriorityQueues is that, ironically, they don’t always behave according to the PriorityQueue semantics. Continue reading
The peek() method from the Java Stream API is often misunderstood. Let’s try to clarify how it works and when should be used.
Stream<T> peek(Consumer<? super T> action)
Vavr is now a must-have for every modern Java 8+ project. It encourages writing code in a functional manner by providing a new persistent Collections API along with a set of new Functional Interfaces and monadic tools like Option, Try, Either, etc. Continue reading