// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) package jwj class CI { infix fun moveto(n: Int) { println("moveto $n") } } class CW { var a = 0 var b = "" } fun main(args: Array) { val o = CI() o.moveto(3) o moveto 3 val w = CW() with(w) { a = 123 b = "abc" println("$a $b") } }