[Haskell-cafe] List comparisons and permutation group code

David House dmhouse at gmail.com
Fri Oct 20 12:28:42 EDT 2006

On 20/10/06, Henk-Jan van Tuyl <hjgtuyl at chello.nl> wrote:
> How about this:
>    import List
>    isIdentity (PL xs) =  xs `isPrefixOf` [1..]
> ?

Nice! Short, lazy and says what it does (onomatopoeic code? :)).

-David House, dmhouse at gmail.com

More information about the Haskell-Cafe mailing list