SyntaxFix
Write A Post
Hire A Developer
Questions
How about using zip and toMap?
myList.zip(myList.map(_.length)).toMap