
20 Oct
2006
20 Oct
'06
1:13 p.m.
Using the base libraries... how sneaky. :)
On 10/20/06, David House
On 20/10/06, Henk-Jan van Tuyl
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@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe