RSS feed
Subscribe to the blog's RSS feed here.JCranky’s Twitter
Tweets by jcranky- agile
- akka
- arduino
- book
- caelum
- case
- casual class
- class
- clone
- cloud
- cloud computing
- coffee
- collections
- css
- date
- digital tv
- dojo
- ejb
- event
- foreach
- function
- functional programming
- ginga
- globalcode
- good practices
- infoq
- j2ee
- java
- java posse
- javascript
- js
- jsf
- junit
- just java
- jxta
- language
- last
- list
- lojinha
- london
- match
- maven
- mercurial
- music
- mvn
- netbeans
- p2p
- pair programming
- pattern matching
- peer-to-peer
- podcast
- programming
- regex
- REST
- robotics
- roo
- s-99
- sbt
- scala
- scala 99 problems
- scalax
- simple build tool
- spring
- spring roo
- springsource
- sun
- tdc
- tdd
- test
- thedevelopersconference
- typesafe
- value
- web development
- xml
- xp
Daily Archives: 20 May 2011
Scala Problem Number Four
Lets solve now the problem number four, from the Scala 99 Problems. This one goes as follows: P04 (*) Find the number of elements of a list. Example: scala> length(List(1, 1, 2, 3, 5, 8)) res0: Int = 6 Lets … Continue reading →
Posted in scala
|
Tagged foldLeft, list, recursion, s-99, scala, scala 99 problems, tail
|
Leave a comment