1 2 3 4 5 6 7 8 9 10 11
pub struct Count(value: Int) { fun message(this) -> String { if (this.value == 1) { "one\n" } else if (this.value == 2) { "two\n" } else { "many\n" } } }