F# Snippets

Recently added snippets

  • Simple example of cross platform Eto forms library

    Simple example of Eto library usage for drawing

    Posted: 3 days ago by Antonio Cisternino

  • Reversing RELEASE_NOTES.md

    Reversing RELEASE_NOTES.md Very ugly version hacked together in a minute

    Posted: 11 days ago by Gustavo Guerra

  • Event stream projection with actors

    An example of using an actor (MailboxProcessor) to coordinate the projection of events from an event stream into a persisted projection. This example covers handling simple concurrency conflicts via also persisting and checking the latest event ID with with projection. The update command will take the current projection and apply all new events before persisting it back. The rebuild command will ignore an existing projection and replay all events in the stream.

    Posted: 14 days ago by Daniel Bradley

Popular snippets

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    97 people like this
    Posted: 3 years ago by Tao Liu

  • Adapter pattern

    Invoke the methods from incompatible types

    93 people like this
    Posted: 3 years ago by Tao Liu

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    79 people like this
    Posted: 3 years ago by Wolfgang Meyer

Snippets by tags

lazy (17) WPF (15) sequences (43) reflection (18) Learning F# (15) fold (13) agent (17) DSL (21) Kata (16) Sequence (28) Async (68) tryfsharp (41) SilverLight (21) monad (18) Design Patterns (18) lists (13) list (39) Seq (42) math (28) computation builder (13) MailboxProcessor (21) string (15) tutorial (15) Algorithms (21) recursion (24) F# (33) collections (13) web (15) parsing (21) game (22)
View all..

Snippets by authors

View all..

Database contains 1467 snippets out of which 1102 are public.