Error: right-hand-side of clause doesn't agree with function result type [tycon mismatch] SML:

前端 未结 0 1675
清酒与你
清酒与你 2021-02-13 12:10
fun splitter [] Even Odd = (Even,Odd)
    | splitter (x::xs) Even Odd =
          if (x mod 2 = 1) then (splitter xs (Odd @ [x])) else (splitter xs (Even @ [x]));


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题