我对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