История изменений
Исправление qnikst, (текущая версия) :
Prelude Data.List.Split Data.List> "Hello,How,Are,You,Today" . splitOn "," . intercalate "."
"Hello.How.Are.You.Today"
так?
или
Prelude> "Hello,How,Are,You,Today" . map (\x -> if x == ',' then '.' else x)
"Hello.How.Are.You.Today"
.
тут переопределен немного
Исправление qnikst, :
Prelude Data.List.Split Data.List> "Hello,How,Are,You,Today" . splitOn "," . intercalate "."
"Hello.How.Are.You.Today"
так?
или
Prelude> "Hello,How,Are,You,Today" . map (\x -> if x == ',' then '.' else x)
"Hello.How.Are.You.Today"
Исходная версия qnikst, :
Prelude Data.List.Split Data.List> "Hello,How,Are,You,Today" . splitOn "," . intercalate "."
"Hello.How.Are.You.Today"
так?