Introduction To F# |
Index |
Hands-On Lab
Introduction to F#
Lab version:1.0.0
Last updated:1/4/2011
Contents
Overview
Exercise 1: Types in F#
Task 1 � Observing Type Inference in F#
Exercise 2: Using the �Let� Keyword in F#
Task 1 � Using the Let Keyword to Bind a Value to an Identifier
Task 2 � Working with tuples and identifiers
Exercise 3: Functions
Task 1 � Binding Functions to Identifiers
Task 2 � Binding Functions with Multiple Parameters
Task 3 � Working with partially-applied functions
Exercise 4: Lists
Exercise 5: Pattern Matching and Recursion
Task 1 � Using Simple Pattern Matching to Output Information
Task 2 � Using Simple Pattern Matching and Recursion to Implement the Fibonacci Sequence
Task 3 � Using Recursion with F# Lists
Exercise 6: Types and Discriminated Unions
Task 1 � Creating a Simple Type in F#
Task 2 � Creating a Discriminated Union
Task 3 � Using Pattern Matching in Discriminated Unions