Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 5 days ago by Phillip Trelford
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: 3 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: 3 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: 4 months ago by halcwb
This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.
84 people like thisPosted: 15 years ago by Tomas Petricek
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: 15 years ago by Alex Muscar
Some simple functions for writing more idiomatic F# tests with NUnit.
91 people like thisPosted: 15 years ago by Ryan Riley
The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.
64 people like thisPosted: 14 years ago by Tomas Petricek
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
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
77 people like thisPosted: 14 years ago by fholm
sequences (48) fold (22) tryfsharp (48) kata (17) math (35) pattern matching (15) silverlight (22) computation builder (17) lazy (20) algorithms (26) seq (54) staging (18) mailboxprocessor (27) learning f# (16) recursion (33) generic programming (17) http (18) parsing (28) regex (17) json (16)
Tomas Petricek (150) Faisal Waris (37) Tuomas Hietanen (80) Phillip Trelford (87) Evgeniy Andreev (13) nagat01 (19) mavnn (17) Ankur Dhama (20) Vesa Karvonen (8) Joel Huang (13) fholm (26) Robert Pickering (10) Brian Berns (9) Eirik Tsarpalis (89) David Klein (16) Carsten König (10) Tao Liu (17) Samuel Bosch (12) devshorts (11) Zhukoff Dima (8)
Database contains 3207 snippets out of which 1719 is public.