Help for this page

Select Code to Download


  1. or download this
    funky (x:y:xs) = ... -- I'm guaranteed to have two elements or more
    funky (x:xs)   = ... {- This pattern would have matched a long list, b
    +ut since
                            the previous variant came first, we know the l
    +ist is
                            of length 1 or 2. *
                         -}