Ray's playground

 

随笔分类 -  F#

Imperative Programming(Chapter 4 of Programming F#)
摘要:The ref type, sometimes referred to as a ref cell, allows you to store mutable data onthe heap, enabling you to bypass limitations with mutable values that are stored on thestack. To retrieve the valu... 阅读全文

posted @ 2010-06-08 09:29 Ray Z 阅读(217) 评论(0) 推荐(0)

Functional Programming(Chapter 3 of Programming F#)
摘要:You can easily create propertiesand methods in F#, so why use a record? Records offer severaldistinct advantages over traditional object-oriented data structures:  • Type inference can infer a r... 阅读全文

posted @ 2010-05-25 20:57 Ray Z 阅读(218) 评论(0) 推荐(0)

Fundamentals(Chapter 2 of Programming F#)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1openSystem23[<EntryPoint>]4letmain(args:string[])=5letnumbers=[1..10]6letsquarex=x*x78letsq... 阅读全文

posted @ 2010-05-22 21:11 Ray Z 阅读(220) 评论(0) 推荐(1)

Introduction to F#(Chapter 1 of Programming F#)
摘要:F#Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1openSystem23[<EntryPoint>]4letmain(args:string[])=5ifargs.Length<>2then6failwith"Error:... 阅读全文

posted @ 2010-05-19 12:54 Ray Z 阅读(257) 评论(0) 推荐(0)

导航