3 ms·
-- Haskell filter even [1,2,3,4]
by rlmw 16y ago
-- Haskell
filter even [1,2,3,4]
- T_S_ 16y agoOr take 2 (filter even [1..]) // take as many as you want
- lfborjas 16y agothis looks really nice, gotta learn me some haskell
- T_S_ 16y agoYou 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-2011> http://wiki.hackerdojo.com/w/page/32992961/Haskell-Hackathon...; Newbies take special note of the Saturday session.
- ricree 16y agoI'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.
- Xk 16y agoSave 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.