You are viewing a single comment's thread. Return to all comments →
You can simplify further by removing the case statment
arr.foldLeft(0)( (acc,i) => acc+1)
List Length
You are viewing a single comment's thread. Return to all comments →
You can simplify further by removing the case statment