Recent snippets

Popular snippets

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 15 years ago by Nick Palladinos

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    127 people like this

    Posted: 15 years ago by Blake Coverett

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 15 years ago by Tao Liu

Snippets by tags

wpf (20) parsing (28) monad (24) async (98) learning f# (16) sequence (32) agent (20) sequences (48) math (35) seq (54) json (16) regex (17) string (29) web (29) recursion (33) dsl (23) list (56) algorithms (25) staging (18) design patterns (18)

View all...

Database contains 3212 snippets out of which 1719 is public.