Download and install Ollama: https://ollama.com/ Ollama is a free common host for multiple different LLM-models like Google Gemma, OpenApi's GPT-OSS, Deepseek, etc.
0 people like thisPosted: 6 days ago by Tuomas Hietanen
ModelContextProtocol with FSharp (MCP with F#) https://modelcontextprotocol.io/docs/getting-started/intro Client and Server examples using https://github.com/modelcontextprotocol/csharp-sdk
0 people like thisPosted: 6 days ago by Tuomas Hietanen
Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: 23 days ago by Tuomas Hietanen
Example of shaping an anonymous-object-as-JSON structure for an Azure dashboard using strong typing and minimal code using Farmer F# https://compositionalit.github.io/farmer/
0 people like thisPosted: 23 days ago by Tuomas Hietanen
A functional wrapper around MailboxProcessor that simplifies agent-based concurrency, adds error handling via events, and provides convenience functions to avoid common pitfalls when working with asynchronous message processing in F#.
2 people like thisPosted: 1 month ago by halcwb
Timestamp: Time format in ISO 8601 with timezone. YYYYMMDDhhmmssffff+zzzz For example 2011-05-17 19:01:10.000 -0200 would be: 20110517190110000-0200
0 people like thisPosted: 3 months ago by Tuomas Hietanen
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.
92 people like thisPosted: 14 years ago by Wolfgang Meyer
Here is an improved version twice shorter, than original
72 people like thisPosted: 14 years ago by Nick Canzoneri
While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.
68 people like thisPosted: 14 years ago by Alex Muscar
This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.
109 people like thisPosted: 14 years ago by Antonio Cisternino
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 thisPosted: 14 years ago by Nick Palladinos
This function is given a partition predicate and a sequence. Until the predicate returns false, a list will be filled with elements. When it is, both the list and the remainder of the sequence will be returned. Note that this example preserves the laziness of the unchecked sequence elements.
69 people like thisPosted: 14 years ago by Rick Minerich
monad (24) http (18) recursion (33) seq (54) computation expression (15) pattern matching (15) sequence (32) computation builder (17) silverlight (22) algorithms (26) tryfsharp (48) html (16) parsing (28) quotations (21) json (16) mailboxprocessor (27) sequences (48) wpf (20) fold (22) list (56)
fholm (26) NIck Palladinos (14) Antonio Cisternino (8) mavnn (17) Tuomas Hietanen (80) Cesar Mendoza (17) Tao Liu (17) Tomas Petricek (150) nagat01 (19) Kit Eason (51) Eirik Tsarpalis (89) Vesa Karvonen (8) Ryan Riley (25) Samuel Bosch (12) Rick Minerich (15) Faisal Waris (37) Ankur Dhama (20) Brian Berns (9) Robert Pickering (10) Fabio Galuppo (14)
Database contains 3205 snippets out of which 1719 is public.