Here is an easy-intermediate challenge for anyone interested!
What is that?
A thing me and brother do a bit too often is this:
One of us has a problem and asks the other to explain how to do certain stuff. The other just says the following carelessly:
How to <verb> in <n> easy steps!
...
It's harder than it looks. Anyone have ideas for further compression and stuff? (I've got q=>{val(r,s"How do I $v?")=(math.random*10).toInt+1->q;1 to r-1 map{i=>s"Step $i - Do not $v."}mkString(s"How to $v in $r easy steps!\n\n","\n",s"\nStep $r - ${v.capitalize}.")} so far
Does anyone have any Scala answers you're particularly proud of or really cool answers by others that you've found? I wanted to add it to my answer nominating Scala for Language of the Month.