Skip to content

Instantly share code, notes, and snippets.

@TEGRAXD
Created March 6, 2021 17:56
Show Gist options
  • Select an option

  • Save TEGRAXD/e813e762237b634f22908d9256d6aa53 to your computer and use it in GitHub Desktop.

Select an option

Save TEGRAXD/e813e762237b634f22908d9256d6aa53 to your computer and use it in GitHub Desktop.
Pair And Title - Penta Kotlin Custom Class Usage Example
fun createExamplePenta() : Penta<Int, String, List<String>, Float, Double> {
return Penta(1, "String Value", listOf("List Value"), 1F, 1.0)
}
val (firstValue, secondValue, thirdValue, fourthValue, fifthValue) = createExamplePenta()
val user = createUser(name = secondValue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment