Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
0 people like thisPosted: 2 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: 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: 4 months ago by halcwb
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
Invoke the methods from incompatible types
110 people like thisPosted: 14 years ago by Tao Liu
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
Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.
203 people like thisPosted: 15 years ago by Nick Palladinos
The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.
67 people like thisPosted: 14 years ago by Phillip Trelford
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
json (16) fold (22) generic programming (17) http (18) recursion (33) seq (54) sequences (48) kata (17) monad (24) reflection (19) design patterns (18) computation builder (17) agent (20) math (35) html (16) regex (17) list (56) array (22) computation expression (15) learning f# (16)
Eirik Tsarpalis (89) mavnn (17) Gauthier Segay (11) Zhukoff Dima (8) nagat01 (19) Joel Huang (13) Kit Eason (51) Tuomas Hietanen (80) Faisal Waris (37) Robert Pickering (10) Fabio Galuppo (14) Ankur Dhama (20) NIck Palladinos (14) Antonio Cisternino (8) Rick Minerich (15) Brian Berns (9) Carsten König (10) David Klein (16) fholm (26) Phillip Trelford (87)
Database contains 3207 snippets out of which 1719 is public.