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: 4 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: 4 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
Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"
383 people like thisPosted: 12 years ago by Muhammad Mugees Asif
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: 15 years ago by Rick Minerich
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
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
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
374 people like thisPosted: 15 years ago by Blake Coverett
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
generic programming (17) staging (18) learning f# (16) kata (17) silverlight (22) sequences (48) wpf (20) quotations (21) json (16) lists (15) computation builder (17) tutorial (17) lazy (20) design patterns (18) computation expression (15) http (18) game (32) string (29) seq (54) list (56)
Fabio Galuppo (14) Faisal Waris (37) Zhukoff Dima (8) Evgeniy Andreev (13) Brian Berns (9) Cesar Mendoza (17) Ryan Riley (25) Taha Hachana (12) Gauthier Segay (11) David Klein (16) Robert Pickering (10) Carsten König (10) Vesa Karvonen (8) Antonio Cisternino (8) Eirik Tsarpalis (89) Ankur Dhama (20) NIck Palladinos (14) nagat01 (19) Tuomas Hietanen (80) Samuel Bosch (12)
Database contains 3208 snippets out of which 1719 is public.