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: 21 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: 27 days 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 https://stackoverflow.com/questions/12562327/how-to-do-seq-takewhile-one-item-in-f 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: 29 days ago by Ruslan Enikeev

Popular snippets

Snippets by tags

silverlight (22) array (22) design patterns (18) lists (14) generic programming (16) fparsec (15) json (14) collections (16) regex (15) web (26) tutorial (17) async (95) sequences (47) learning f# (16) string (24) parsing (25) dsl (23) quotations (19) f# (44) reflection (18)

View all...

Database contains 2404 snippets out of which 1628 is public.