Remember the concept.
Get back to building.

CommitPath is a quick Kotlin knowledge refresher. Open a flashcard for a clear answer, or follow a Guided lesson one Step at a time.

FlashcardKotlin
reversed()

Returns a list with its elements in the opposite order. The original list stays unchanged.

val steps = listOf("read", "build", "ship")
val reverse = steps.reversed()
// [ship, build, read]

A small step is enough.

Explore 26 Kotlin-related topics, including Kotlin Multiplatform, Compose, Android development, and the tools around them. Make personal decks, save favorites, and pick up where you left off.

  • Free to use
  • Bundled lessons work offline
  • No account needed