我對F#很新,所以請原諒完全新手的問題:在F#中的打印序列#
我有一個序列存儲在一個叫做價格的變量中。我想輸出這個序列的內容到交互式窗口。最簡單的命令是什麼?
這裏是我的序列:
> prices;;
val it : seq<System.DateTime * float> = seq []
我試過printf'ing它,但是給我的錯誤:
> printf("%A", prices);;
printf("%A", prices);;
-------^^^^^^^^^^^^
stdin(82,8): error FS0001: The type ''b * 'c' is not compatible with the type 'Printf.TextWriterFormat<'a>'
任何幫助,將不勝感激。
感謝您的真棒鏈接。 printfn正是我所期待的。 – rein 2009-08-18 14:45:10