История изменений
Исправление Waterlaz, (текущая версия) :
haskell
import Data.List
meh = unlines . packem . filter ("J" `isPrefixOf`)
where packem (x:y:z:rs) = (x ++ " and " ++ y ++ " follow " ++ z):packem rs
packem _ = []
Исправление Waterlaz, :
haskell
import Data.List
meh = unlines . packem . filter ("J" `isPrefixOf`)
where packem (x:y:z:rs) = (x ++ " and " ++ y ++ " follow " ++ z):packem rs
packem _ = []
Исходная версия Waterlaz, :
haskell
import Data.List
meh = unlines . packem . filter ("J" `isPrefixOf`)
where packem (x:y:z:rs) = (x ++ " and " ++ y ++ " follow " ++ z):packem rs
packem _ = []
[\code]