Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 1 month 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.
1 people like thisPosted: 3 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: 3 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: 4 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/
2 people like thisPosted: 4 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: 5 months ago by halcwb
Invoke the methods from incompatible types
110 people like thisPosted: 14 years ago by Tao Liu
The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.
119 people like thisPosted: 15 years ago by Alex Muscar
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
302 people like thisPosted: 15 years ago by Nick Palladinos
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: 15 years ago by Antonio Cisternino
F# implementation of RO_ref from the "Effective ML" talk.
92 people like thisPosted: 14 years ago by fholm
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: 15 years ago by Tomas Petricek
kata (17) tryfsharp (48) design patterns (18) dsl (23) math (35) staging (18) mailboxprocessor (27) html (16) tutorial (17) async (98) reflection (19) seq (54) json (16) f# (43) sequence (32) parsing (28) computation expression (15) web (29) quotations (21) http (18)
mavnn (17) Tao Liu (17) David Klein (16) Ankur Dhama (20) Taha Hachana (12) Robert Pickering (10) Eirik Tsarpalis (89) Tomas Petricek (150) Tuomas Hietanen (80) Zhukoff Dima (8) Nick Palladinos (66) Fabio Galuppo (14) Phillip Trelford (87) NIck Palladinos (14) Cesar Mendoza (17) nagat01 (19) Samuel Bosch (12) Carsten König (10) Gauthier Segay (11) devshorts (11)
Database contains 3208 snippets out of which 1719 is public.