Skip to content

Instantly share code, notes, and snippets.

@marianosimone
Created August 8, 2018 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianosimone/b5443390f339b5b14ff13edc7160b2fe to your computer and use it in GitHub Desktop.
Save marianosimone/b5443390f339b5b14ff13edc7160b2fe to your computer and use it in GitHub Desktop.
example 7 [java is dead, long live Kotlin - 2018-08 post@thumbtack]
val allStrings = mutableListOf<String>()
val currentNode = root
while (currentNode != null) {
allStrings.add(currentNode.value)
currentNode = currentNode.next
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment