Recent snippets

Popular snippets

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    107 people like this

    Posted: 7 years ago by Tomas Petricek

  • Convert an object to json, and json to object

    There is a namespace System.Runtime.Serialization.Json To serialize generic object you can do like this...

    75 people like this

    Posted: 7 years ago by Tuomas Hietanen

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 7 years ago by Alex Muscar

Snippets by tags

json (12) monad (21) tutorial (17) wpf (19) fparsec (14) kata (17) game (30) parsing (22) learning f# (16) http (15) mailboxprocessor (26) collections (16) agent (20) dsl (22) xml (12) recursion (27) seq (51) regex (14) silverlight (21) list (49)

View all...

Database contains 2232 snippets out of which 1525 is public.