我知道这看起来很基本,但基本上,我想在模式匹配中说
match value with Null-> failwith "Empty" |value-> #do something
我尝试过null或none的任何变化,并且还尝试过无法使用的单位,因为value是float.
我很难过,任何帮助都会受到赞赏
null ocaml exception pattern-matching
exception ×1
null ×1
ocaml ×1
pattern-matching ×1