0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Foundations of F# Net phần 3 pps

Foundations of F#.Net phần 3 pps

Foundations of F#.Net phần 3 pps

... results are as follows:12 3 The previous example also demonstrates another nice feature of F# when interoperatingwith non -F# libraries. .NET APIs often use a .NET construct called delegates, ... follows:[1I; 1I; 2I; 3I; 5I; 8I; 13I; 21I; 34 I; 55I; 89I; 144I; 233 I; 37 7I; 610I; 987I;1597I; 2584I; 4181I; 6765I]These examples are too simple to really demonstrate the power of lazy evaluation. ... the result of another. Consider thenext example, where you obtain a list of all the .NET assemblies in memory and then processthis list until you end up with a list of all the .NET methods...
  • 32
  • 257
  • 0
Foundations of F#.Net phần 2 ppsx

Foundations of F#.Net phần 2 ppsx

... of what went wrong, you can use failwith to raise a genericexception that contains the text passed to the function.let primes =[ 2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31 ; 37 ; 41; 43; 47; 53; ... find details of how to pattern match over typesfrom non -F# libraries in Chapter 3. Defining TypesThe type system in F# provides a number of features for defining custom types. All of F# s typedefinitions ... follows:[0; 3; 6; 9; 12; 15; 18; 21; 24; 27; 30 ][9; 8; 7; 6; 5; 4; 3; 2; 1; 0]CHAPTER 3 ■ FUNCTIONAL PROGRAMMING 31 7575Ch 03. qxp 4/27/07 12:59 PM Page 31 You may have noticed that although I’ve...
  • 35
  • 320
  • 0
Foundations of F#.Net phần 6 pps

Foundations of F#.Net phần 6 pps

... piPrintf.printf "%2.8f\r\n" piThe results of this code are as follows: 3. 1415 93 3.1 3. 14 3. 14159265The Printf module also contains a number of other functions that allow a string to beformatted ... most useful.The Microsoft.FSharp.Math NamespaceThe Microsoft.FSharp.Math namespace is designed to enable F# to ensure that the F# librariesinclude definitions of some of the foundational constructs ... issetCHAPTER 7 ■ THE F# LIBRARIES1497575Ch07.qxp 4/27/07 1: 03 PM Page 149The Microsoft.FSharp.Control.IEvent ModuleYou can think of an event in F# as a collection of functions that can be...
  • 35
  • 280
  • 0
Foundations of F#.Net phần 8 pps

Foundations of F#.Net phần 8 pps

... DATA ACCESS2 13 7575Ch09.qxp 4/27/07 1:05 PM Page 2 13 Normalize - 2Replace - 2IndexOfAny - 3 EndsWith - 3 Equals - 3 StartsWith - 3 LastIndexOfAny - 3 Split - 6LastIndexOf - 9IndexOf - 9Using ... 20:21:21dpst.bat 17 01/10/20 03 02:08:10imagefaq.bat 21 01/10/20 03 02:08:10IO.SYS 0 12/05/20 03 20:21:22MSDOS.SYS 0 12/05/20 03 20:21:22NTDETECT.COM 47564 23/ 08/2001 14:00:00Ntldr 250 032 23/ 08/2001 14:00:00NavCClt.Log ... 2ToCharArray - 2Substring - 2IsNormalized - 2CHAPTER 9 ■ DATA ACCESS 233 7575Ch09.qxp 4/27/07 1:05 PM Page 233 F# libraries, because the F# team did not want to introduce a binary dependency onto some-thing...
  • 34
  • 404
  • 0
Foundations of F#.Net phần 1 pptx

Foundations of F#.Net phần 1 pptx

... MALLOY(0. 937 5 INCH BULK 38 4 pages 60# Thor)The eXPeRT’s VOIce® In .neT Robert PickeringForeword by Don Syme Foundations of F# BOOks fOR PROfessIOnals By PROfessIOnals® Foundations of F# Dear ... URL .NET Framework 3. 0 Chapter 8, http://www.microsoft.com/downloads/details.Chapter 10 aspx?FamilyId=10CC340B-F857-4A14-83F5-25 634 C3BF0 43& amp;displaylang=enSDK for .NET Framework 3. 0 Chapter 8, ... 8, http://www.microsoft.com/downloads/details.Chapter 10 aspx?familyid=C2B1E300-F358-45 23- B479-F53D 234 CDCCF&displaylang=enSQL Server 2005 Chapter 9http://msdn.microsoft.com/vstudio/express/Express...
  • 39
  • 337
  • 0
Foundations of F#.Net phần 4 pptx

Foundations of F#.Net phần 4 pptx

... create a new instance of this delegate and apply it to a list of integers.As you’ve already seen in Chapter 3, there are much shorter ways of implementing this func-tionality in F#. #lighttype MyDelegate ... prop.MyPropprint prop.MyPropprint prop.MyPropThe results of the previous example, when compiled and executed, are as follows:2 137 491492726598452 33 4746691It is also possible to declare abstract properties. ... from C#” in Chapter 13. CHAPTER 6 ■ ORGANIZING, ANNOTATING, AND QUOTING CODE1 13 7575Ch06.qxp 4/27/07 1:11 PM Page 1 13 Organizing, Annotating, andQuoting CodeAn important part of any programming...
  • 32
  • 289
  • 0
Foundations of F#.Net phần 5 potx

Foundations of F#.Net phần 5 potx

... [-21474 836 48; -21474 836 47; -21474 836 46; -21474 836 45; -21474 836 44; -21474 836 43; -21474 836 42; -21474 836 41; -21474 836 40; -21474 836 39]The unfold FunctionYou already met unfold in Chapter 3; it is ... contains a list of System.Type values that represent the members of aCHAPTER 7 ■ THE F# LIBRARIES 137 7575Ch07.qxp 4/27/07 1: 03 PM Page 137 tuple, so by printing the Name property of System.Type, ... place. The results of the first part of the sample, run on a single-processor machine, are as follows:CHAPTER 7 ■ THE F# LIBRARIES 135 7575Ch07.qxp 4/27/07 1: 03 PM Page 135 function, interpretInt,...
  • 32
  • 319
  • 0
Foundations of F#.Net phần 7 doc

Foundations of F#.Net phần 7 doc

... the NetFx3 WPF site (http://wpf.netfx3.com) and of course the WPFsection of MSDN (http://msdn2.microsoft.com/en-us/netframework/aa6 633 26.aspx).SummaryThis chapter provided an overview of ... /></DiffuseMaterial.Brush></DiffuseMaterial></GeometryModel3D.Material></GeometryModel3D></Model3DGroup.Children></Model3DGroup></ModelVisual3D.Content></ModelVisual3D></Viewport3D.Children><Viewport3D.Triggers><EventTrigger ... LookDirection="0,0,-1" FieldOfView="60" /></Viewport3D.Camera><Viewport3D.Children><ModelVisual3D><ModelVisual3D.Content><Model3DGroup ><Model3DGroup.Children><AmbientLight...
  • 29
  • 296
  • 0
Foundations of F#.Net phần 9 pdf

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 * ExprThe tree consists of just one type because it ... ignoreThe results of this example, when executed (on the day of this writing), are as follows:0. <b> ;F#& lt;/b>http://research.microsoft.com/fsharp/fsharp.aspxA .NET variant of ML with a ... potential of this sort of application. Instead of a GetYeastMoleculemethod, you’d more realistically provide a GetMolecule method that took a name of a molecule,looked the details of the molecule...
  • 48
  • 384
  • 0
Foundations of F#.Net phần 10 pot

Foundations of F#.Net phần 10 pot

... MessageBeep(uint32 beepType)MessageBeep(0ul) |> ignoreCHAPTER 13 ■ COMPATIBILITY AND ADVANCED INTEROPERATION 33 67575Ch 13. qxp 4/27/07 1:08 PM Page 33 6The F# Tool Suite and .NET Programming ... aplug-in to view code in F# is in the early stages of development.CHAPTER 12 ■ THE F# TOOL SUITE AND .NET PROGRAMMING TOOLS 31 37575Ch12.qxp 4/27/07 1:07 PM Page 31 3The CLR Profiler can generate ... ADVANCED INTEROPERATION 33 77575Ch 13. qxp 4/27/07 1:08 PM Page 33 7Figure 12-5. The NProf profiler GUIIt’s also worth looking at the methods that have the highest number of calls. In this case,you...
  • 67
  • 280
  • 0

Xem thêm

Từ khóa: Nghiên cứu sự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngchuyên đề điện xoay chiều theo dạngNghiên cứu tổ chức pha chế, đánh giá chất lượng thuốc tiêm truyền trong điều kiện dã ngoạiGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANPhát triển mạng lưới kinh doanh nước sạch tại công ty TNHH một thành viên kinh doanh nước sạch quảng ninhNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngTìm hiểu công cụ đánh giá hệ thống đảm bảo an toàn hệ thống thông tinSở hữu ruộng đất và kinh tế nông nghiệp châu ôn (lạng sơn) nửa đầu thế kỷ XIXChuong 2 nhận dạng rui roBT Tieng anh 6 UNIT 2Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtNguyên tắc phân hóa trách nhiệm hình sự đối với người dưới 18 tuổi phạm tội trong pháp luật hình sự Việt Nam (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtBÀI HOÀN CHỈNH TỔNG QUAN VỀ MẠNG XÃ HỘIChiến lược marketing tại ngân hàng Agribank chi nhánh Sài Gòn từ 2013-2015MÔN TRUYỀN THÔNG MARKETING TÍCH HỢPQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ