我需要实现在列表头部插入两个元素的函数,但我得到了
Exception: <interactive>:7:5-41: Non-exhaustive patterns in function addTwoElements
该函数的代码如下
addTwoElements a b [xs]= a : b : [xs]
提前致谢
我需要实现在列表头部插入两个元素的函数,但我得到了
Exception: <interactive>:7:5-41: Non-exhaustive patterns in function addTwoElements
该函数的代码如下
addTwoElements a b [xs]= a : b : [xs]
提前致谢