fork download
  1. import Data.Function
  2. import Data.List -- yolo
  3.  
  4. main = print (zaebashit ["hello","he","lo"])
  5.  
  6. zaebashit = groupBy isSuffixOf . sortBy (compare `on` reverse)
Success #stdin #stdout 0s 4600KB
stdin
Standard input is empty
stdout
[["he"],["lo","hello"]]