Se ho una funzione Kotlin fun f(cb: (Int) -> Unit)
e voglio chiamare f da Java, devo farlo come: f(i -> {
dosomething();
return Unit.INSTANCE;
});
che sembra molto brutto. Perché non po
Come fare una proprietà in Kotlin che ha un getter privato (o semplicemente non ce l'ha) ma ha un setter pubblico? var status
private get
non funziona con un errore: Getter visibility must be the s