You are viewing a single comment's thread. Return to all comments →
for(distX <- list1.distinct) { if (list1.groupBy(_ == distX)(true).size < list2.groupBy(_ == distX)(true).size) { print(s"$distX") } }
Any tips to avoid for and if, is welcomed :)
Seems like cookies are disabled on this browser, please enable them to open this website
Missing Numbers (FP)
You are viewing a single comment's thread. Return to all comments →
Any tips to avoid for and if, is welcomed :)