-
-
Save marianosimone/b5443390f339b5b14ff13edc7160b2fe to your computer and use it in GitHub Desktop.
example 7 [java is dead, long live Kotlin - 2018-08 post@thumbtack]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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