F# at Microsoft Research - Microsoft ResearchについてきたTutorial.fsを読みながら、F#とOCamlの違いついてメモしてみます。 拡張子が.fs OCamlは.mlだけど、F#は.fs。 コメントが// OCamlのコメントは(* ... *)だけど、F#は//。 範囲 let oneToTen = [1..10] 内包表記 /// The squares of the first 10 integers let squaresOfOneToTen = [ for x in 0..10 -> x*x ] ディクショナリ let lookupTable = dict [ (1, "One"); (2, "Two") ] let oneString = lookupTable.[1] パイプライン 2008-11-12の+>と同じですね。