jducoeur: (Default)
[personal profile] jducoeur
For those curious about my frequent rhapsodies about Scala, you may want to check out the bible of the subject, which has just been published online for free.

There is, of course, a gotcha: this is the first edition of the book, not the second, so it doesn't talk about the fairly major improvements in the current 2.8 release of the language, much less the soon-to-be-released 2.9. But it's still 95% accurate and covers 90% of the interesting topics, so it's a convenient way to check out all of the ins and outs of the language for free...

(no subject)

Date: 2011-04-15 12:07 pm (UTC)
From: [identity profile] metageek.livejournal.com

I've started working through this. I was delighted to realize that a Map could be used as a function:

val m=Map("foo" -> "bar", "baz" -> "quux", "fred" -> "barney")

List("foo","fred","foo","baz").map(m)

(no subject)

Date: 2011-04-15 02:59 pm (UTC)
From: [identity profile] metageek.livejournal.com
Python does a lot of DWIM (e.g., for-loop over arbitrary collections, [] into anything that makes sense), but all within its paradigm; it's pretty sparse on functional features.

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags