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: 1 month 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: 1 month ago by Tuomas Hietanen
Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: 2 months 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: 2 months 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: 3 months 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: 5 months ago by Tuomas Hietanen
Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.
77 people like thisPosted: 14 years ago by Tomas Petricek
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.
70 people like thisPosted: 14 years ago by Rick Minerich
Some simple functions for writing more idiomatic F# tests with NUnit.
91 people like thisPosted: 14 years ago by Ryan Riley
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
374 people like thisPosted: 14 years ago by Blake Coverett
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 is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.
57 people like thisPosted: 14 years ago by Dmitry Soshnikov
quotations (21) dsl (23) agent (20) lazy (20) game (32) lists (15) async (98) mailboxprocessor (27) silverlight (22) seq (54) computation expression (15) collections (16) http (18) web (29) json (16) array (22) math (35) design patterns (18) string (29) algorithms (26)
Zhukoff Dima (8) Nick Palladinos (66) Gauthier Segay (11) Taha Hachana (12) Ankur Dhama (20) devshorts (11) fholm (26) nagat01 (19) Tao Liu (17) Joel Huang (13) Robert Pickering (10) Brian Berns (9) Phillip Trelford (87) Ryan Riley (25) Cesar Mendoza (17) Tomas Petricek (150) mavnn (17) Vesa Karvonen (8) NIck Palladinos (14) Tuomas Hietanen (80)
Database contains 3206 snippets out of which 1719 is public.