Recent snippets

  • JsonValue JsonConverter

    Not super efficient, and doesn't work on every case, but works most of the time. Json.NET JsonConverter for a JsonValue, i.e. JsonValueConverter. If you're using with a converter for discriminated unions, be sure to give this one higher precedence (since JsonValue is implemented as a DU).

    1 people like this

    Posted: 1 month ago by Nat Elkins

  • Finding nearest airplane to a location

    Given a location as a float tuple (latitude, longitude) it will return the plane closest nearby as a JsonValue using the OpenSky API. For fun also demonstrating some operator overloading with (-->) between two coordinates. I'm new to these functional languages, so please feel free to update the solution with interesting refactortings and whatnot.

    3 people like this

    Posted: 2 months ago by Johan Irvall

  • MSMQ Functional Client

    F# Functional-style API for MSMQ, providing simple client operations like Send, Receive, and Peek.

    3 people like this

    Posted: 2 months ago by Aaron Eshbach

Popular snippets

Snippets by tags

http (15) math (32) xml (12) list (50) string (22) lists (13) collections (16) pattern matching (13) seq (51) mailboxprocessor (26) fold (19) wpf (19) learning f# (16) parsing (22) json (14) web (24) dsl (22) computation builder (14) sequence (30) agent (20)

View all...

Database contains 2252 snippets out of which 1537 is public.