#kotlin
Read more stories on Hashnode
Articles with this tag
keys and values are both user-defined maps. so for retrieving a value, key should be provided as an argument of the get() function. The shorthand...
union() function merge two collections into one. It is in the infix form a union b. Order of the operands is important. In the resulting collection,...
List Operations If the list size is less than the specified index, an exception is thrown. However two functions can avoid such...
Collection write support operations for changing the collection contents, for example, adding or removing elements. Adding elements To add a single...
fold(): fold() takes an initial value and applies a given operation to each element of the collection, accumulating the result. It requires an...
Operation which returns a single value depends upon collection content is known as aggregate function, present in Kotlin collections. minOrNull() and...