代码改变世界

随笔分类 -  Confused

warning FS0025: Incomplete pattern matches on this expression

2010-05-27 20:56 by FMax, 320 阅读, 收藏,
摘要: 在看F#的模式匹配的时候,遇到一个问题: let f x =     match x with     | _ when x < 0 -> -1     | _ when x = 0 -> 0     | _ when x > 0 -> 1;; ... 阅读全文