Save some characters:
filter even [1..4]
I've found most of the time when you're trying to get incredibly short expressions that aren't obfuscated, haskell wins.
Or
take 2 (filter even [1..]) // take as many as you want
This is true, I forgot to mention that the haskell version trivially scales to infinite lists. You can use partial application to encourage code reuse as well:
evens = filter even
Even better.
this looks really nice, gotta learn me some haskell
You can. For free. Later this week in Mountain View. From some of the world's best and friendliest Haskell experts.
<http://wiki.hackerdojo.com/w/page/32992961/Haskell-Hackathon...;
Newbies take special note of the Saturday session.
I'm currently in the process of learning it, and I'd definitely recommend it.
If nothing else, it's great having a compiler that can catch a large amount of errors without getting bogged down in the type boilerplate that many other static languages require.
Implicit static typing is definitely something I miss when working in other languages.
filter even [1,2,3,4]