-- :load "c:\\HaskellProgs\\chap6.hs" and' [] = True and' (True:r) = and' r and' _ = False ------------------------------ concat' [] = [] concat' (l:ls) = l ++ (concat' ls) ------------------------------ repl 0 _ = [] repl n item = item:(repl (n-1) item) ------------------------------ nth 0 (h:t) = h nth n (_:t) = nth (n-1) t ------------------------------ elem' _ [] = False elem' a (h:t) | a == h = True | otherwise = elem' a t ------------------------------ merge [] l = l merge l [] = l merge (a:b) (c:d) | a