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 element

Advertisements

About ysden123

We are not only for work... All my time free from work I spend on photography. Most photos are from our travels. I like make photos in still life style as well.
This entry was posted in Programming, Scala and tagged , , , . Bookmark the permalink.

One Response to Operators for Collections in Scala

  1. Pingback: Operators for Collections in Scala (v2) | Ysden123's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s