I want my showStackHead function take a stack print the head and return the rests, here is my code --code
showStackHead xx
| xx == [] = return []
| otherwise = do putStrLn("result:" ++ (head xx))
return (tail xx)
当我管理这一法典时,汇编者告诉我,在第二次返回方面存在着一小差错,因此写这一职能的正确方式是什么?