2010-12-12から1日間の記事一覧

オブジェクト式

F#には、いろいろと興味深い機能がありますが、オブジェクト式もそのひとつ。open NUnit.Frameworktype IGreeing = abstract Greet : string -> string[<Test>] let ``test Object Expression``() = let greeting = { new IGreeing with member this.Greet(name) =</test>…

explicit factoring by functions と implicit factoring by hierarchy

Expert F# 2.0 (Expert's Voice in F#)作者: Don Syme,Adam Granicz,Antonio Cisternino出版社/メーカー: Apress発売日: 2010/06/01メディア: ペーパーバック購入: 1人 クリック: 35回この商品を含むブログ (2件) を見るこの本を読んでいます。 その中で関数…