kotlin-stdlib / kotlin.collections / HashSet / size size Common Native 1.0 val size: Int(Common source) (Native source) JS 1.1 open val size: Int(source) Returns the size of the collection.