Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 27 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: 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: 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/
2 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
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
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async
Posted: 14 years ago by Ryan Riley
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
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
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
Show's how to define units of measure to add stronger typing to your numerical functions.
75 people like thisPosted: 15 years ago by Robert Pickering
algorithms (26) sequence (32) fold (22) design patterns (18) html (16) string (29) computation expression (15) silverlight (22) computation builder (17) json (16) kata (17) http (18) regex (17) monad (24) wpf (20) lists (15) f# (43) web (29) generic programming (17) quotations (21)
Samuel Bosch (12) mavnn (17) fholm (26) Tomas Petricek (150) devshorts (11) Fabio Galuppo (14) Carsten König (10) Ankur Dhama (20) NIck Palladinos (14) Kit Eason (51) Gauthier Segay (11) Taha Hachana (12) Vesa Karvonen (8) Tao Liu (17) Cesar Mendoza (17) Evgeniy Andreev (13) Tuomas Hietanen (80) Faisal Waris (37) Brian Berns (9) Ryan Riley (25)
Database contains 3207 snippets out of which 1719 is public.