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

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

--
-David House, [EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to