... place . The results of the first part of the sample, run on a single-processor machine, are as follows: CHAPTER 7 ■ THE F# LIBRARIES 1 35 757 5Ch07.qxp 4/27/07 1:03 PM Page 1 35 function, interpretInt, ... QUOTING CODE 127 757 5Ch06.qxp 4/27/07 1:11 PM Page 127 The F# Libraries Although F# can use all the classes available in the .NET BCL, it also ships with its own set of lib...
Ngày tải lên: 05/08/2014, 10:21
... future is now. Robert Pickering Foundations of F# Pickering cyan MaGenTa yellOW Black PanTOne 123 c ISBN-13: 978-1 -59 059 - 757 -6 ISBN-10: 1 -59 059 - 757 -5 9 78 159 0 59 757 6 9 0 0 0 0 Shelve in Programming ... prior written permission of the copyright owner and the publisher. ISBN-13: 978-1 -59 059 - 757 -6 ISBN-10: 1 -59 059 - 757 -5 Printed and bound in the United Sta...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 2 ppsx
... 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 birth (ddmmyy): 23 057 8 I should note ... 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 deco...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 3 pps
... Two CHAPTER 4 ■ IMPERATIVE PROGRAMMING 58 757 5Ch04.qxp 4/27/07 1:00 PM Page 58 757 5Ch03.qxp 4/27/07 12 :59 PM Page 54 ■Note This example also demonstrates a common pattern in F#. Note how you want to create ... another nice feature of F# when interoperating with non -F# libraries. .NET APIs often use a .NET construct called delegates, which are concep- tually a kind of fu...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 4 pptx
... there’s no way to create an instance of it. To enable you to create an instance of CHAPTER 5 ■ OBJECT-ORIENTED PROGRAMMING 95 757 5Ch 05. qxp 4/27/07 1:02 PM Page 95 In the simplest case, you can place ... !currPos); } CHAPTER 5 ■ OBJECT-ORIENTED PROGRAMMING 85 757 5Ch 05. qxp 4/27/07 1:02 PM Page 85 You will notice from the previous example that the static methods called use th...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 6 pps
... results of this code are as follows: H data: Harry None H data: Jane H data: Hillary None H data: John H data: Henry CHAPTER 7 ■ THE F# LIBRARIES 155 757 5Ch07.qxp 4/27/07 1:03 PM Page 155 #light open ... is set CHAPTER 7 ■ THE F# LIBRARIES 149 757 5Ch07.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...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 7 doc
... the NetFx3 WPF site ( http://wpf.netfx3.com) and of course the WPF section of MSDN ( http://msdn2.microsoft.com/en-us/netframework/aa663326.aspx). Summary This chapter provided an overview of ... with F#. Because of the scope of this topic, I didn’t cover all the options for user interface programming in F#. For example, there are hundreds of third-party components, built on AS...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 8 pps
... follows: addadmin.bat 95 01/10/2003 02:08:10 ATTDialer.doc 297472 03/11/2003 20:12 :54 AUTOEXEC.BAT 0 12/ 05/ 2003 20:21:21 avapower.gif 1 056 07/07/2004 01:27: 05 boot.ini 211 12/ 05/ 2003 12 :58 :01 CONFIG.SYS 0 12/ 05/ 2003 ... 01/10/2003 02:08:10 IO.SYS 0 12/ 05/ 2003 20:21:22 MSDOS.SYS 0 12/ 05/ 2003 20:21:22 NTDETECT.COM 4 756 4 23/08/2001 14:00:00 Ntldr 250 032 23/08/2001 14:00:00 N...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 9 pdf
... 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 of just one type because it ... just a matter of selecting File ➤ New ➤ Web Site and then choosing the location for the website. CHAPTER 10 ■ DISTRIBUTED APPLICATIONS 255 757 5Ch10.qxp 4/27/07 1:06 PM Page 25...
Ngày tải lên: 05/08/2014, 10:21
Foundations of F#.Net phần 10 pot
... 1,000,000 Interpreted 6,890 6,979 6,932 7,608 14,8 35 84,823 799,788 Compiled via 8, 65 856 854 1,007 2,369 15, 871 151 ,602 delegate Compiled 1,112 1,409 2,463 16,8 95 151 ,1 35 1 ,50 0,437 14,869,692 F r om T able ... CLR Profiler can help you get a bet- ter idea of what types of objects ar e taking up memory and when they get allocated. CHAPTER 12 ■ THE F# TOOL SUITE AND .NET...
Ngày tải lên: 05/08/2014, 10:21