类型 'int' 不支持运算符“==”

The type 'int' does not support the operator '=='

我想这样计算二项式:

let t = seq { 1..10 } |> Seq.takeWhile (fun e -> e % 2 == 0)

但编译器抱怨

playground.fsx(27,59): error FS0001: The type 'int' does not support the operator '=='

我做错了什么?

F# 使用单个 = 作为相等运算符:

let t = seq { 1..10 } |> Seq.takeWhile (fun e -> e % 2 = 0)