Snippets created by Jack Fox

  • unit test in VS11 beta

    Demo F# unit test in VS11 beta. In VS 2010 unit testing requires a hack whereby you add a c# test project to your solution and add to that project a linked item to the DLL of the F# project with the test methods.

    6 people like this

    Posted: 5 years ago by Jack Fox

  • Heterogeneous Parallel Async

    Perform parallel Async returning heterogeneous types. (The solution presented here is based on a gist sent to me by [Anton Tayanovskyy]( "Anton Tayanovskyy"), Twitter: [@t0yv0](

    6 people like this

    Posted: 3 years ago by Jack Fox

  • Bayesian Monte Carlo of Let's Make a Deal

    This code illustrates Bayes' Theorem in action on the Let's Make a Deal problem (aka Monty Hall Problem), which several authors have used to illustrate Bayes' Theorem. (It's easy to search the internet for further explanation.) Run with the audit option to audit up to the first 100 games. Running without audit is faster and can simulate a couple billion games.

    5 people like this

    Posted: 4 years ago by Jack Fox