Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 1.37 KB
package co.zsmb.villagedsl.simple.nodsl.homemade
import co.zsmb.villagedsl.simple.models.*
fun main(args: Array<String>) {
val village = Village(listOf(
House(listOf(
Person(
name = "Emily",
age = 31
),
Person(
name = "Hannah",
age = 27
),
Person(
name = "Alex",
age = 21
),
Person(
name = "Daniel",
age = 17
)
)),
House(listOf(
Person(
name = "Joe",
age = 48
)
)),
House(listOf(
)),
House(listOf(
Person(
name = "Sarah",
age = 40
),
Person(
name = "Tom",
age = 26
),
Person(
name = "Holly",
age = 52
)
))
))
print(village)
}