amanda.hinchman-dominguez
10/07/2018, 9:56 PMopen class Scope() {
internal var workspaceInstance: Workspace? = null
constructor(workspace: Workspace, vararg setInScope: ScopedInstance) : this() {
set(*setInScope)
workspaceInstance = workspace
}
constructor(vararg setInScope: ScopedInstance) : this() {
set(*setInScope)
}
....
}
amanda.hinchman-dominguez
10/07/2018, 10:42 PMvararg
is the Kotlin equivalent of the Ruby feature * which means you don't know how many parameters there are