Simply Scala: Try Scala in the browser
simplyscala.com
simplyscala.com
for(0 until 100000000000){
print(".")
}
error: Server Timeout - possibly an infinite loop in your program.Here's one for python: http://try-python.mired.org/
and one for ruby: http://tryruby.sophrinix.com/
One of the simplest and most forceful motivators is simply having someone expecting something of you.
(there's your motivation :) )
Good work though, looks good
ltrs.foldLeft(List[(Char,Int)]()){
case ((prevchr,cnt)::tl,chr) if(prevchr==chr) =>(prevchr,cnt+1)::tl
case (tbl,chr) => (chr,1)::tbl
}
Keeping track of cnt, chr, t1, tbl, etc is hard enough, even when you're not trying to learn the syntax as well.