December 2011 Archives

grep in Perl - filter in Haskell

By using the the grep function in Perl, one can pick elements from a list that match a certain condition. Haskell uses the filter function to do the same work.

About mateu

user-pic I blog about Perl.