此代碼F#類型不匹配而調用函數
let rec readNLines n list =
if n = 0 then
list
else
readNLines(n-1,readInt()::list)
與
Type mismatch. Expecting a 'a but given a 'a -> 'a
The resulting type would be infinite when unifying ''a' and
''a -> 'a' (using built-in F# compiler)
結束,但是當最後一行改爲
readNLines(n-1,(readInt()::list))
或
readNLines(n-1)(readInt()::list)
運行正常
問題是:爲什麼? :|只有