While reading a book on Scala i stumbled upon the following code. Am unable to segregate the code into the function, parameters, variables.
val feeds = Map("Andy Hunt" -> "blog.toolshed.com",
"Dave Thomas" -> "pragdave.me",
"NFJS" -> "nofluffjuststuff.com/blog")
val fiterName = feeds filter { element =>
val (key, value) = element
(key startsWith "D") && (value contains "pragprog")
}
Can some one explain me the code step by step?