Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 21 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
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
74 people like thisPosted: 15 years ago by Tomas Petricek
I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.
73 people like thisPosted: 15 years ago by Dmitri Pavlenkov
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
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
Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.
104 people like thisPosted: 14 years ago by Tao Liu
An asynchronous sequence is similar to the seq
Posted: 15 years ago by Tomas Petricek
learning f# (16) computation expression (15) lazy (20) recursion (33) fold (22) tryfsharp (48) collections (16) dsl (23) async (98) quotations (21) list (56) f# (43) lists (15) reflection (19) sequences (48) staging (18) json (16) html (16) seq (54) regex (17)
Kit Eason (51) Tao Liu (17) mavnn (17) David Klein (16) NIck Palladinos (14) devshorts (11) Cesar Mendoza (17) Eirik Tsarpalis (89) Brian Berns (9) Ryan Riley (25) Antonio Cisternino (8) Evgeniy Andreev (13) Nick Palladinos (66) Carsten König (10) Robert Pickering (10) nagat01 (19) Taha Hachana (12) Fabio Galuppo (14) Vesa Karvonen (8) Zhukoff Dima (8)
Database contains 3207 snippets out of which 1719 is public.