Question: Create a void returning function, show, which takes one parameter, an immutable Map, and outputs the symbol /shares as shown above except in alphabetical order.
"Create a void returning function, show, which takes one parameter, an immutable Map, and outputs the symbol /shares as shown above except in alphabetical order. Hint: keyes is an Iterable which does not support the sortWith method; convert the keys to a List which does support sortWith."
I'm confused what my professors means by an immutable map. How do I pass that as a parameter.
Using Scala
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
