Recent snippets

  • Get Bitcoin wallet

    Get Bitcoin wallet account balance by public 1BUYBTC1oYQtAjktSRZUtjkeBJ15ABc5bb

    0 people like this

    Posted: 13 hours ago by The streets

  • .NET Core 3 Windows Service

    With .NET Core 3 a template 'dotnet new worker' was created that allows services to be created. The template currently only works to create C# code so this snippet shows how I have translated the C# into F# and the steps needed to create the service. dotnet new console -lang F# -o FsharpService cd FsharpService dotnet add package Microsoft.Extensions.Hosting.WindowsServices dotnet add package System.Net.NameResolution Update the program.fs as shown below and then build and install the service dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -o "./published" sc create fSharpService binPath= "<>\FsharpService.exe"

    2 people like this

    Posted: 5 days ago by Jackson McCann

  • Generic programming with Leibniz Equality

    Uses Leibniz equality to generalize an example presented in

    3 people like this

    Posted: 10 days ago by Eirik Tsarpalis

Popular snippets

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    79 people like this

    Posted: 8 years ago by Novox

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    62 people like this

    Posted: 8 years ago by Tao Liu

  • Adapter pattern

    Invoke the methods from incompatible types

    102 people like this

    Posted: 8 years ago by Tao Liu

Snippets by tags

string (22) collections (16) kata (17) html (15) game (30) fold (19) fparsec (15) quotations (18) staging (18) mailboxprocessor (27) recursion (30) tutorial (17) f# (42) generic programming (16) silverlight (22) json (14) array (21) wpf (20) computation builder (14) http (15)

View all...

Database contains 2360 snippets out of which 1604 is public.