KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have scala map: attrs: Map[String , String] When I try to iterate over map like; attrs.foreach { key, value => } the above does not work. In each iteration I must know what is the key and what is the value. What is the proper way to iterate over scala map using scala syntactic sugar?
Tags (comma-separated)
Save Edits
Cancel