小编fra*_*nkJ的帖子

如何从Haskell中的字符串列表中获取搜索匹配?

如何从Haskell中的字符串列表中获取搜索匹配?

module Main
    where
import List
import IO
import Monad

getLines = liftM lines . readFile

main = do
    putStrLn "Please enter your name: "
    name <- getLine
    list <- getLines "list.txt"
   -- mapM_ putStrLn list -- this part is to list out the input of lists 
Run Code Online (Sandbox Code Playgroud)

string io haskell list

3
推荐指数
1
解决办法
220
查看次数

标签 统计

haskell ×1

io ×1

list ×1

string ×1