scala-vienna / DevFest2013-Workshop

Material for workshop "From Java to Scala" on DevFest2013
Other
1 stars 3 forks source link

Collections #7

Closed teliatko closed 11 years ago

teliatko commented 11 years ago

Timing:

Content: Show collections power: high-order methods, unified interface ...

sebnozzi commented 11 years ago

Been busy last days and just have seen this and understand the implications... I'm honoured!

Will clone and get to work :-D

sebnozzi commented 11 years ago

Just pushed what I consider my final implementation. It might need revision and eventually some pruning (removing some exercises). For this, I recommend opening a new issue. Will close this now.

sebnozzi commented 11 years ago

Unfortunately, I think some exercises need to go :-(

I stopped the time and try to solve everything as fast as I could without reading the text and just writing the solution and running the tests just 2 times at the end. I needed 14 minutes... for code and exercises that I knew!

So I guess people new to both exercises and Scala will need... 1 hour?!?!

1015bit commented 11 years ago

Maybe I'm missing something, but shouldn't

    assert(evenNrs.contains(1), "Should contain 1")
    assert(!evenNrs.contains(2), "Should not contain 2")

be the other way round: evenNrs.contains(2) and !evenNrs.contains(1)?

sebnozzi commented 11 years ago

Looks like you are right! Fixed it. Thanks for your sharp eyes!