washing haskell for steffen
haskell
posted: Dec, 13th 2011 | jump to bottom
import Test.QuickCheck import Data.List -- Contract -- Purpose -- Takes a list of clothes and sorts them into groups which can be washed together. -- This might help Steffen to find out what can be washed together. -- Examples -- sortWashing ["Boxershort", "T-Shirt", "T-Shirt"] : [["T-Shirt", "T-Shirt"], ["Boxershort"]] -- Definition sortWashing xs = group xs -- Test
62 views




