Brent
Member since Aug 22, 2012
- Profile: /members/10221-brent.htm
- Comments: 1
Recent Blog Comments By Brent
-
Seven Languages In Seven Weeks: Erlang - Day 1
Posted on Aug 22, 2012 at 2:26 PM
A much simpler approach to the word count problem: word_count([]) -> 1; word_count(32) -> 1; word_count([Char|Tail]) -> word_count(Char) + word_count(Tail); word_count(_) -> 0. It doesn't handle corner-case strings like "", but at least it's consistent with the materia... read more »