Skip to content

Instantly share code, notes, and snippets.

View FSharp Agent Logger.fs
namespace FSharpRulesEngine
open System
type LogMessageType =
| Information
| Exception
type ILogger =
View FSharp DB Record Mapping.fs
//Taken from here: http://fssnip.net/5E
//Given any of this kind (record)
type product =
{ProductId:int;
ProductName:string;
SupplierID:int;
CategoryID:int;
QuantityPerUnit:string;
UnitPrice:decimal;
@jshurst
jshurst / FSharp FizzBuzz Pattern Matching.fs
Last active Jul 19, 2016
F# FizzBuzz Pattern Matching
View FSharp FizzBuzz Pattern Matching.fs
let x =
for c in [1..100] do
match c%3,c%5 with
| 0,0 -> printfn "FizzBuzz"
| 0,_ -> printfn "Fizz"
| _,0 -> printfn "Buzz"
| _ -> printfn "%d" c