Show's how to use F# 'use' key word to dispose a resource when it passes out of scope.
33 people like thisPosted: 14 years ago by Robert Pickering
Demonstrates using the 'lazy' keyword. Show's how a lazy value will only ever be evaluated once.
45 people like thisPosted: 14 years ago by Robert Pickering
Show's how to define a recursive function that will calculate a fibonacci number.
16 people like thisPosted: 14 years ago by Robert Pickering
Show's how to create a parametrized active pattern that will match based on a regular expression.
34 people like thisPosted: 14 years ago by Robert Pickering
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 thisPosted: 13 years ago by Robert Pickering
This snippet uses the lazy keyword to create a delayed computation. It then show's using 'force' to evaluate the computation.
27 people like thisPosted: 14 years ago by Robert Pickering
Show's using the unfold function to create a sequence that terminates once some limit is passed.
39 people like thisPosted: 14 years ago by Robert Pickering
Shows how to use an active pattern that will try to determine the format of an input value.
17 people like thisPosted: 14 years ago by Robert Pickering
Show's how to define units of measure to add stronger typing to your numerical functions.
75 people like thisPosted: 14 years ago by Robert Pickering
Print a byte buffer in the same way unix tool hexdump would.
3 people like thisPosted: 11 years ago by Robert Pickering