sumOf

inline fun sumOf(selector: (Vector2I) -> Double): Double
inline fun sumOf(selector: (Vector2I) -> Int): Int
inline fun sumOf(selector: (Vector2I) -> UInt): UInt
inline fun sumOf(selector: (Vector2I) -> Long): Long
inline fun sumOf(selector: (Vector2I) -> ULong): ULong
inline fun sumOf(selector: (Vector2I) -> Vector2I): Vector2I

Returns the sum of all values produced by selector function applied to each element in the array.