## Snippets created by Robert Pickering

• ### 'use' Bindings

Show's how to use F# 'use' key word to dispose a resource when it passes out of scope.

33 people like this

Posted: 11 years ago by Robert Pickering

• ### Using the 'lazy' Keyword

This snippet uses the lazy keyword to create a delayed computation. It then show's using 'force' to evaluate the computation.

27 people like this

Posted: 11 years ago by Robert Pickering

• ### Unfolding Sequences

Show's using the unfold function to create a sequence that terminates once some limit is passed.

38 people like this

Posted: 11 years ago by Robert Pickering

• ### Using Active patterns

Shows how to use an active pattern that will try to determine the format of an input value.

16 people like this

Posted: 11 years ago by Robert Pickering

• ### Units of Measure

Show's how to define units of measure to add stronger typing to your numerical functions.

75 people like this

Posted: 11 years ago by Robert Pickering

• ### hexdump

Print a byte buffer in the same way unix tool hexdump would.

3 people like this

Posted: 8 years ago by Robert Pickering

• ### Unfolding Sequences

Demonstrates how to use unfold to create an infinite list of the fibonacci numbers

56 people like this

Posted: 11 years ago by Robert Pickering

• ### Using the 'lazy' Keyword

Demonstrates using the 'lazy' keyword. Show's how a lazy value will only ever be evaluated once.

45 people like this

Posted: 11 years ago by Robert Pickering

• ### Recursive functions

Show's how to define a recursive function that will calculate a fibonacci number.

16 people like this

Posted: 11 years ago by Robert Pickering

• ### Using Active patterns

Show's how to create a parametrized active pattern that will match based on a regular expression.

34 people like this

Posted: 11 years ago by Robert Pickering

• ### Calculating when the 1000th XKCD will appear

Calculate's when a the nth XKCD will appear, starting from XKCD 946. For a full explanation this snippet see: http://strangelights.com/blog/archive/2011/09/02/calculating-when-the-1000th-xkcd-will-appear.aspx

3 people like this

Posted: 10 years ago by Robert Pickering