Created
August 4, 2020 14:21
-
-
Save Partyschaum/174d22f47c03011c070acecd9ee02bf7 to your computer and use it in GitHub Desktop.
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
data class Node( | |
val next: Node?, | |
val payload: String | |
) | |
val evenList = Node( | |
payload = "node 1", | |
next = Node( | |
payload = "node 2", | |
next = Node( | |
payload = "node 3", | |
next = Node( | |
payload = "node 4", | |
next = Node( | |
payload = "node 5", | |
next = Node( | |
payload = "node 6", | |
next = null | |
) | |
) | |
) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment