SHARE
TWEET

Untitled

a guest Apr 6th, 2011 116 Never
  1. sortL :: [String] -> [String]
  2. sortL l = map sort (map (filter (/= '#')) l)
  3.  
  4. comp :: [String] -> [String] -> [(String,String)]
  5. comp x y = filter (\(x,y) -> x==y) (zip x y)
  6.  
  7. firsts :: [String] -> [String] -> [String]
  8. firsts a b = map fst $ comp a b
  9.  
  10. transl :: [String] -> [String] -> [String]
  11. transl a b = map snd $ filter (==(map fst (comp (firsts a b) (map fst a)))) a   -- error
RAW Paste Data
Top