【发布时间】:2017-07-25 14:23:40
【问题描述】:
F# 使解包元组变得容易。解包列表也是可行的,但是编译器会发出警告:
let m = [1; 2; 3]
let [a; b; c] = m
// Incomplete pattern matches on this expression. For example, the value '[_;_;_;_]' may indicate a case not covered by the pattern(s)
有没有办法避免这个警告?
【问题讨论】:
标签: list f# pattern-matching