Haskell Zip Parse Error
问题 I am trying to use the zip function in Haskell to join two lists together. The lists could be defined and info gathered as follows: priority <- getLine let priorityList = [] priority : priorityList name<- getLine let nameList = [] name : nameList After gathering the info, the expected output would be priorityList = [1,2,3] & nameList = [test1, test2, test3]. However, this is unimportant for the purpose of the question, it can be assumed that the two lists are in the following format: