letupdate(count,sum)value=ifvalue>0then(count+1),sumelsecount,(sum+value)// usage, start with 0 count/sum, update them for each valuelet(count,sum)=Array.foldupdate(0,0)inputArr
This returns a tuple instead of an array, which I believe is an improvement.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
F#
This returns a tuple instead of an array, which I believe is an improvement.