Using the result of an operator
The complete source of operators_discarded.ek9, compiled by the EK9 compiler. Shown on operators.html.
#!ek9 defines module site.operators.discarded defines program Discarded() stdout <- Stdout() price <- 100 tax <- 20 //GOOD: Assign the result total <- price + tax //GOOD: Or use the mutating operator if mutation is the intent price += tax stdout.println(`${total} ${price}`)
Download operators_discarded.ek9
Output
120 120