相关疑难解决方法(0)

Haskell字符串中的换行符?

如何在String中创建换行符?没有使用可能IO ()吗?

formatRow :: Car -> String
formatRow (a, d:ds, c, x:xs) = a ++ " | " ++ x ++ concat xs ++ " | " ++ show c ++ " | " ++ d ++ concat ds ++ (show '\n')
Run Code Online (Sandbox Code Playgroud)

string haskell newline

31
推荐指数
1
解决办法
4万
查看次数

标签 统计

haskell ×1

newline ×1

string ×1