# Programming in Kotlin - Part 33: Maps | Ray Wenderlich

**URL:** <https://forums.kodeco.com/t/programming-in-kotlin-part-33-maps-ray-wenderlich/40661>\
**Category:** 🎓 Courses & Articles\
**Created:** [March 23, 2018, 12:45am UTC](https://forums.kodeco.com/t/programming-in-kotlin-part-33-maps-ray-wenderlich/40661 "2018-03-23T00:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevindmoore](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kevindmoore/32/109046_2.png) [@kevindmoore](https://forums.kodeco.com/u/kevindmoore)\
**Post date:** [March 23, 2018, 12:45am UTC](https://forums.kodeco.com/t/programming-in-kotlin-part-33-maps-ray-wenderlich/40661/1 "2018-03-23T00:45:00Z")

</div>

Learn how to use Maps in Kotlin to store a mapped collection of data.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/4736-programming-in-kotlin/lessons/33](https://www.raywenderlich.com/4736-programming-in-kotlin/lessons/33)

---

<div class="post-metadata">

**Author:** ![sagarsuri](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sagarsuri/32/91485_2.png) [@sagarsuri](https://forums.kodeco.com/u/sagarsuri)\
**Post date:** [October 28, 2018, 9:29am UTC](https://forums.kodeco.com/t/programming-in-kotlin-part-33-maps-ray-wenderlich/40661/2 "2018-10-28T09:29:35Z")

</div>

In this video you used the example of students. What if 2 students have same name? I guess roll numbers would have be a better fit. What you say ?

---

<div class="post-metadata">

**Author:** ![kevindmoore](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kevindmoore/32/109046_2.png) [@kevindmoore](https://forums.kodeco.com/u/kevindmoore)\
**Post date:** [October 28, 2018, 3:10pm UTC](https://forums.kodeco.com/t/programming-in-kotlin-part-33-maps-ray-wenderlich/40661/3 "2018-10-28T15:10:55Z")

</div>

That is one of the features of maps: They have to have unique keys. You could use the full name to make it unique.
