sdavids
02/09/2017, 5:41 AMconstructor(c: Cell, f: (T) -> T) : this({ f(c.value) }) {
c.dependents.add(this)
}
constructor(c1: Cell, c2: Cell, f: (T, T) -> T) : this({ f(c1.value, c2.value) }) {
c1.dependents.add(this)
c2.dependents.add(this)
}
With something like: constructor(vararg cells: Cell, f: (vararg T) -> T)