<@U2SK1P99P> Since functions and constructors look...
# getting-started
r
@alwyn Since functions and constructors look the same in Kotlin, you can just define a top level function with the same name:
Copy code
class Cell(row: Int, col: Int, color: Color)

fun Cell(row: Int, col: Int, red: Int, green: Int, blue: Int) = Cell(row, col, Color(red, green, blue))

val cell1 = Cell(0, 0, Color.RED)
val cell2 = Cell(0, 0, 255, 0, 0)