f# - F# 结构元组的 fst 和 snd 的等价物?
问题描述
如果我使用引用元组,则编译:
let plot(x: int, y: int) = ()
let point = 3, 4
plot(fst point, snd point)
但是,如果我使用的是结构元组......
let plot(x: int, y: int) = ()
let point = struct (3, 4)
plot(fst point, snd point)
...我得到编译器错误,One tuple type is a struct tuple, the other is a reference tuple
我应该怎么办?