On Feb 10, 2008 1:20 PM, Felipe Lessa <[EMAIL PROTECTED]> wrote:
> Maybe
>
> addProduct :: [Product] -> Product -> [Product]
> addProduct inventory p = p : delete p inventory

Oh, forget this, it will keep rewriting the tail of the list, which is
a Bad Thing (TM).

-- 
Felipe.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to