Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 4 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: 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/
0 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
I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.
124 people like thisPosted: 15 years ago by Blake Coverett
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: 14 years ago by Rick Minerich
The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).
83 people like thisPosted: 14 years ago by Tao Liu
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
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: 14 years ago by Dmitri Pavlenkov
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
237 people like thisPosted: 14 years ago by Tuomas Hietanen
monad (24) lists (15) f# (43) pattern matching (15) computation builder (17) async (98) string (29) game (32) lazy (20) tryfsharp (48) wpf (20) array (22) sequence (32) quotations (21) staging (18) dsl (23) reflection (19) agent (20) parsing (28) seq (54)
David Klein (16) Faisal Waris (37) Samuel Bosch (12) Robert Pickering (10) Zhukoff Dima (8) Ankur Dhama (20) Nick Palladinos (66) mavnn (17) Rick Minerich (15) Fabio Galuppo (14) Cesar Mendoza (17) devshorts (11) Taha Hachana (12) NIck Palladinos (14) Tomas Petricek (150) Carsten König (10) Antonio Cisternino (8) Phillip Trelford (87) Eirik Tsarpalis (89) Tuomas Hietanen (80)
Database contains 3207 snippets out of which 1719 is public.