Tag Archives: collection

Java: Stream and Classic Loop – Benchmark

Java 8 has rich possibilities to process the collections. One of them is stream. The main goal of stream, as I see it, is changing of programming paradigm: from “how to do” to “what to do”. Focusing Advertisements

Rate this:

Posted in java, Programming | Tagged , , , , , | 1 Comment

How to build map from stream – examples

Java 8 suggests  nice ways to create maps from stream. You can see some code examples on GitHub: https://github.com/ysden123/ys-pjava/blob/master/basics/src/main/java/com/stulsoft/pjava/basics/stream/CollectExamples.java

Rate this:

Posted in java, Programming | Tagged , , , , , | Leave a comment

Operators for Collections in Scala (v2)

Short reminder of operators for collections in the Scala, version 2. Previous version: Operators for Collections in Scala Operators for deleting and adding elements Operator Description Collection type coll :+ elem Adds elem element at the end of coll collection. … Continue reading

Rate this:

Posted in Programming, Scala | Tagged , , , | Leave a comment

Operators for Collections in Scala

Short reminder of operators for collections in the Scala: +   – adds an element into unordered collection +:  – adds an element at the beginning :+  – adds an element at the end ++  – joins two collections – and – –   – deletes an … Continue reading

Rate this:

Posted in Programming, Scala | Tagged , , , | 1 Comment