Haskell 学习

truncate pi函数

-- 表示截断, 此处结果为 3spa


haskell中的touple是可变的,而python中是不可变的


lines函数:

lines :: String -> [String]

以‘\n'为分隔符,创建列表


interact 函数:

interact :: (String -> String) -> IO ()

相关文章
相关标签/搜索