paint-brush
Read-only collections in Kotlin, leads to better coding.by@elye.project
1,272 reads
1,272 reads

Read-only collections in Kotlin, leads to better coding.

by Elye5mOctober 15th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In Kotlin, if you create a <em>List</em> or <em>Map</em>, it is Read-Only (<a href="https://stackoverflow.com/a/33738910/3286489">similar to Immutable, but slightly different</a>). What this means is, you have no <em>add</em> or <em>put</em> or <em>remove </em>function to add to or remove from the collection once it is constructed.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Read-only collections in Kotlin, leads to better coding.
Elye HackerNoon profile picture
Elye

Elye

@elye.project

L O A D I N G
. . . comments & more!

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite