Foundations of F# Net phần 2 ppsx

Foundations of F#.Net phần 2 ppsx

Foundations of F#.Net phần 2 ppsx

... identifiers, vol1, vol2, and vol3. #light type Volume = | Liter of float | UsPint of float | ImperialPint of float let vol1 = Liter 2. 5 let vol2 = UsPint 2. 5 let vol3 = ImperialPint (2. 5) To deconstruct ... follows: Enter day of the month on which you were born: 23 Enter number of the month you were born: 5 Enter last two digits of the year of your birth: 78 Date of bir...

Ngày tải lên: 05/08/2014, 10:21

35 320 0
Foundations of F#.Net phần 1 pptx

Foundations of F#.Net phần 1 pptx

... Don Syme Foundations of F# BOOks fOR PROfessIOnals By PROfessIOnals ® Foundations of F# Dear Reader, I wrote this book because I believe functional programming (FP) is the future of .NET programming. ... http://www.microsoft.com/downloads/details. aspx?familyid=E719ECF7-9F46-43 12- AF89- 6AD8702E4E6E&displaylang=en M icrosoft .NET LINQ Chapter 9 http://www.microsoft.com/...

Ngày tải lên: 05/08/2014, 10:21

39 337 0
Foundations of F#.Net phần 3 pps

Foundations of F#.Net phần 3 pps

... ) The results are as follows: 1 2 3 The previous example also demonstrates another nice feature of F# when interoperating with non -F# libraries. .NET APIs often use a .NET construct called delegates, ... PROGRAMMING 83 7575Ch05.qxp 4 /27 /07 1: 02 PM Page 83 #light let fibs = Seq.unfold (fun (n0, n1) -> Some(n0, (n1, n0 + n1))) (1I,1I) let first20 = Seq.take 20 fibs print_any...

Ngày tải lên: 05/08/2014, 10:21

32 257 0
Foundations of F#.Net phần 4 pptx

Foundations of F#.Net phần 4 pptx

... i prop.MyProp <- 12 print prop.MyProp print prop.MyProp print prop.MyProp The results of the previous example, when compiled and executed, are as follows: 21 374914 92 726 5984 52 334746691 It is ... Point(x,y) let shapes = [ movingCircle (point (10,10)) 20 ; movingSquare (point (30,30)) 20 ; fixedCircle (point (20 ,20 )) 20 ; fixedSquare (point (40,40)) 20 ; ] let mainForm = let...

Ngày tải lên: 05/08/2014, 10:21

32 289 0
Foundations of F#.Net phần 5 potx

Foundations of F#.Net phần 5 potx

... are as follows: 1 1 1 1 1 1 1 1 1 1 [ -21 47483648; -21 47483647; -21 47483646; -21 47483645; -21 47483644; -21 47483643; -21 474836 42; -21 47483641; -21 47483640; -21 47483639] The unfold Function You already ... code is compiled for .NET 2. 0 and the other for all other versions of .NET: #light open Microsoft.FSharp.Compatibility #if FRAMEWORK_AT_LEAST _2_ 0 let getArray() = [|1; 2...

Ngày tải lên: 05/08/2014, 10:21

32 319 0
Foundations of F#.Net phần 6 pps

Foundations of F#.Net phần 6 pps

... is set CHAPTER 7 ■ THE F# LIBRARIES 149 7575Ch07.qxp 4 /27 /07 1:03 PM Page 149 The Microsoft.FSharp.Control.IEvent Module You can think of an event in F# as a collection of functions that can be ... most useful. The Microsoft.FSharp.Math Namespace The Microsoft.FSharp.Math namespace is designed to enable F# to ensure that the F# libraries include definitions of some of the fo...

Ngày tải lên: 05/08/2014, 10:21

35 280 0
Foundations of F#.Net phần 7 doc

Foundations of F#.Net phần 7 doc

... Internet to help you do this. A good resource is the NetFx3 WPF site ( http://wpf.netfx3.com) and of course the WPF section of MSDN ( http://msdn2.microsoft.com/en-us/netframework/aa663 326 .aspx). Summary This ... libraries for other .NET languages. Please refer to Chapter 13 for more information about making F# libraries usable by other .NET languages. Introducing ASP .NET 2. 0 AS...

Ngày tải lên: 05/08/2014, 10:21

29 296 0
Foundations of F#.Net phần 8 pps

Foundations of F#.Net phần 8 pps

... 20 :21 :21 dpst.bat 17 01/10 /20 03 02: 08:10 imagefaq.bat 21 01/10 /20 03 02: 08:10 IO.SYS 0 12/ 05 /20 03 20 :21 :22 MSDOS.SYS 0 12/ 05 /20 03 20 :21 :22 NTDETECT.COM 47564 23 /08 /20 01 14:00:00 Ntldr 25 00 32 23/08 /20 01 ... 01/10 /20 03 02: 08:10 ATTDialer.doc 29 74 72 03/11 /20 03 20 : 12: 54 AUTOEXEC.BAT 0 12/ 05 /20 03 20 :21 :21 avapower.gif 1056 07/07 /20 04 01 :27 :...

Ngày tải lên: 05/08/2014, 10:21

34 404 0
Foundations of F#.Net phần 9 pdf

Foundations of F#.Net phần 9 pdf

... consist of a list of points or sections that consist of functions. The definition of the type is as follows: CHAPTER 11 ■ LANGUAGE-ORIENTED PROGRAMMING 27 2 7575Ch11.qxp 4 /27 /07 1:07 PM Page 27 2 This ... tree: type Expr = | Ident of string | Val of System.Double | Multi of Expr * Expr | Div of Expr * Expr | Plus of Expr * Expr | Minus of Expr * Expr The tree consists...

Ngày tải lên: 05/08/2014, 10:21

48 384 0
Foundations of F#.Net phần 10 pot

Foundations of F#.Net phần 10 pot

... compatibility and advanced interoperation. CHAPTER 12 ■ THE F# TOOL SUITE AND .NET PROGRAMMING TOOLS 322 7575Ch 12. qxp 4 /27 /07 1:07 PM Page 322 Compatibility and Advanced Interoperation In this ... give CHAPTER 12 ■ THE F# TOOL SUITE AND .NET PROGRAMMING TOOLS 308 7575Ch 12. qxp 4 /27 /07 1:07 PM Page 308 Figure 12- 1. The NUnit GUI Using Assembly Browsers Because of all the m...

Ngày tải lên: 05/08/2014, 10:21

67 280 0
Từ khóa:
w