October 2019
Intermediate to advanced
434 pages
11h 54m
English
Following the outline of our target DSL syntax, our first step is to create some type of order object that can then be configured:
class Order(val id: String)
We've created this as a simple class with a single id property so that orders can be unique.
abstract class Item(val name: String)
class Order(val id: String) : Item("Order") { val items: MutableMap<Item, Int> = mutableMapOf()}
fun order ...
Read now
Unlock full access