Does anyone happen to know if you can tell a lambd...
# announcements
s
Does anyone happen to know if you can tell a lambda to be able to take in vararg argument (I assume no), but I would like to see if there is a good replacement for:
Copy code
constructor(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)