Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

average in array swift

let sumArray = intArray.reduce(0, +)

let avgArrayValue = sumArray / intArray.count
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #average #array #swift
ADD COMMENT
Topic
Name
3+8 =