Skip to content

Instantly share code, notes, and snippets.

@Partyschaum
Created August 4, 2020 14:21
Show Gist options
  • Save Partyschaum/174d22f47c03011c070acecd9ee02bf7 to your computer and use it in GitHub Desktop.
Save Partyschaum/174d22f47c03011c070acecd9ee02bf7 to your computer and use it in GitHub Desktop.
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