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: 2 months 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: 2 months 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
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
83 people like thisPosted: 14 years ago by Dmitri Pavlenkov
F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300
89 people like thisPosted: 14 years ago by fholm
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 command redo-undo implement group the command under Do/Undo category.
70 people like thisPosted: 14 years ago by Tao Liu
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: 15 years ago by Tomas Petricek
An asynchronous sequence is similar to the seq
Posted: 14 years ago by Tomas Petricek
reflection (19) html (16) wpf (20) math (35) lists (15) json (16) seq (54) pattern matching (15) staging (18) sequences (48) fold (22) generic programming (17) quotations (21) game (32) f# (43) tutorial (17) kata (17) sequence (32) async (98) web (29)
devshorts (11) Nick Palladinos (66) Faisal Waris (37) Tomas Petricek (150) Samuel Bosch (12) Antonio Cisternino (8) Tuomas Hietanen (80) Evgeniy Andreev (13) David Klein (16) Fabio Galuppo (14) Ankur Dhama (20) Cesar Mendoza (17) Brian Berns (9) mavnn (17) nagat01 (19) Gauthier Segay (11) Joel Huang (13) Phillip Trelford (87) NIck Palladinos (14) Robert Pickering (10)
Database contains 3206 snippets out of which 1719 is public.