# Getting started with Kotlin's collection classes

**URL:** <https://discuss.kotlinlang.org/t/getting-started-with-kotlins-collection-classes/768>\
**Category:** Uncategorized\
**Created:** [July 25, 2013, 5:14pm UTC](https://discuss.kotlinlang.org/t/getting-started-with-kotlins-collection-classes/768 "2013-07-25T17:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddd](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@ddd](https://discuss.kotlinlang.org/u/ddd)\
**Post date:** [July 25, 2013, 5:14pm UTC](https://discuss.kotlinlang.org/t/getting-started-with-kotlins-collection-classes/768/1 "2013-07-25T17:14:30Z")

</div>

Read this post from the bottom up; the editor is placing new-lines in the wrong place...

The “Unresolved reference: MutableSet” type errors don’t help any in working this out (saying “MutableSet is a trait; objects can only be created from non-abstract classes” would be so much clearer).

It seems that jet.MutableSet is a trait which is satisfied by java.util.TreeSet, etc. Is the only point to expose a Kotlin-ised API and make usage of immutable containers (or at least mutable containers hidden behind immutable interfaces) easier?

Where is the documentation for Kotlin’s collection classes? They’re not mentioned in the API documentation nor much in any other documentation that I can see.

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [July 25, 2013, 5:31pm UTC](https://discuss.kotlinlang.org/t/getting-started-with-kotlins-collection-classes/768/2 "2013-07-25T17:31:10Z")

</div>

So far there are no Kotlin-specific containers, we rely on the ones available from Java for the time being. Kotlin will provide its own containers (or reuse immutable containers from other libraries), but it is not done yet.

---

<div class="post-metadata">

**Author:** ![kenbarc](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/kenbarc/32/1693_2.png) [@kenbarc](https://discuss.kotlinlang.org/u/kenbarc)\
**Post date:** [July 28, 2013, 5:15pm UTC](https://discuss.kotlinlang.org/t/getting-started-with-kotlins-collection-classes/768/3 "2013-07-28T17:15:22Z")

</div>

Perhaps I can help.

I have a library containing, among other things, immutable data types such as lists, trees, sets, maps, etc. as well as  
option and either type. The library is pure Kotlin. I have developed tests for them and they seem reasonably robust. They  
have then been used to develop other Kotlin libraries. It would be good to have another pair of eyes scrutenize them.

Ken
