Recent snippets

  • Get Bitcoin wallet

    Get Bitcoin wallet account balance by public 1Attj6CfQgnbrkmyeahbFEfjK2T3BRtyzJ

    0 people like this

    Posted: 4 days ago by The streets

  • XSD Class Generator

    This can be used to generate F# code from an XSD schema. Similar to xsd.exe, this can be wrapped in a console application and used for generator XML or SOAP service clients to facilitate serialization/deserialization of XML into objects.

    3 people like this

    Posted: 10 days ago by Aaron M Eshbach

  • Distribution of Random hyperharmonic series

    The random hyperharmonic series is the infinite series S = Sum(1,inf,d(i)/i^pow), where integer pow is greater than 1, and d(i) are independent, identically distributed random variables with property P(d(i)=0) = P(d(i)=1) = 0.5. Cumulative function F(x) = P(S < x) for even powers can be build by combination of analytical and numerical computations.

    3 people like this

    Posted: 15 days ago by Pavel Tatarintsev

Popular snippets

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    180 people like this

    Posted: 9 years ago by Tomas Petricek

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    58 people like this

    Posted: 9 years ago by fholm

  • 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".]

    80 people like this

    Posted: 9 years ago by Novox

Snippets by tags

tryfsharp (48) tutorial (17) html (15) async (95) list (53) silverlight (22) sequence (30) regex (15) reflection (18) lazy (19) parsing (25) design patterns (18) game (30) computation builder (14) kata (17) f# (44) algorithms (25) collections (16) staging (18) dsl (23)

View all...

Database contains 2383 snippets out of which 1618 is public.