我怎样才能确定模式
func (2:xs) = expression
其中2:xs是长度为2的列表与模式不匹配
func (2:x:xs) = expression2
其中2:x:xs是长度为3的列表?
haskell pattern-matching
haskell ×1
pattern-matching ×1