You are viewing a single comment's thread. Return to all comments →
the variable 'i' is never referenced; you can make this clearer by:
arr.foldLeft(0)((a,_ => a + 1))
Seems like cookies are disabled on this browser, please enable them to open this website
List Length
You are viewing a single comment's thread. Return to all comments →
the variable 'i' is never referenced; you can make this clearer by:
arr.foldLeft(0)((a,_ => a + 1))