List of Figures
2.1 The
fold_range
function can be used to accumulate the result of applying a functionf
to a contiguous sequence of integers, in this case the sequence [1,9). 402.2 Developing an application written entirely in F# using Microsoft Visual Studio 2005. 53
2.3 Visual Studio provides graphical throwback of the type information inferred by the F# compiler: hovering the mouse over the definition of a variable
r
in the source code brings up a tooltip giving the inferred type ofr
. 542.4 A project's properties page allows the compiler to be controlled. 55
2.5 The Add-in Manager is used to provide the F# interactive mode. 57
2.6 Creating a new C# class library project called
ClassLibraryl
inside a new solution calledInterop.
592.7 Creating a new F# project called
Projectl
also inside theInterop
solution. 592.8 Setting the startup project ofthe
Interop
solution to the F# projectProject1
rather than the C# projectClassLibraryl
as a DLL cannot be used to start an application . 603.1 Complexities of the
ipow_l
andipow_2
functions in terms of the number T(n) of multiplies performed. 673.2 Complexities of the
ipow_2
function in terms of the number of multiplies performed, showing: exact complexity T(n) (dots) and lower- and upper-bounds algorithmic complexities log2(n) — 1 ≤ T (n) ≤ 2(1 + log2 n) for n > 1 (lines). 683.3 Measured performance of the
ipow_l
andipow_2
functions which have asymptotic algorithmic complexities of3.4 Arrays are the simplest data structure, allowing ...
Get F# for Scientists now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.