Recent snippets

  • Use Argu to access .NET Core hosted configuration (appSettings.json)

    Configure Argu to read from hosted Microsoft.Extensions.Configuration and pass a ParseResult<'T> through dependency injection. This allows you to combine Argu's full-featured command-line handling and strong typing with M.E.C's multiple sources (appSettings..json, environment variables, etc).

    1 people like this

    Posted: 24 days ago by Loïc Denuzière

  • A very simple free monad

    You might have heard that a "free" monad can be created from any functor. Unfortunately, that doesn't mean much if you're not already familiar with category theory. This example creates a free monad from a simple functor types

    5 people like this

    Posted: 1 month ago by Brian Berns

  • Continue sequence after applying Seq.takeWhile, skip, take, etc

    Sometimes you need to take more elements from a sequence, e.g. look at This solution allows fetching elements from the same sequence after applying takeWhile, skip, take and other sequence functions. However, need to remember to call function with right parameter: use 'true' to include current element into result sequence (after takeWhile for example)

    2 people like this

    Posted: 1 month ago by Ruslan Enikeev

Popular snippets

Snippets by tags

string (24) tutorial (17) fold (21) seq (54) math (35) html (15) list (53) computation builder (14) json (14) generic programming (16) async (95) staging (18) quotations (19) monad (22) fparsec (15) agent (20) pattern matching (14) collections (16) http (15) wpf (20)

View all...

Database contains 2404 snippets out of which 1628 is public.