令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
2 people like thisPosted: 13 days ago by 方尖碑
Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
6 people like thisPosted: 2 months 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
1 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
1 people like thisPosted: 5 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/
3 people like thisPosted: 5 months ago by Tuomas Hietanen
Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]
87 people like thisPosted: 15 years ago by Novox
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
303 people like thisPosted: 15 years ago by Nick Palladinos
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 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.
85 people like thisPosted: 15 years ago by Tomas Petricek
Strategy pattern in F#
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: 15 years ago by Ryan Riley
parsing (28) collections (16) array (22) agent (20) json (16) tutorial (17) recursion (33) quotations (21) computation builder (17) f# (43) math (35) reflection (19) seq (54) async (98) dsl (23) regex (17) silverlight (22) design patterns (18) fold (22) monad (24)
Taha Hachana (12) devshorts (11) Brian Berns (9) nagat01 (19) Evgeniy Andreev (13) Fabio Galuppo (14) Vesa Karvonen (8) Zhukoff Dima (8) Carsten König (10) Tomas Petricek (150) Ankur Dhama (20) Cesar Mendoza (17) Robert Pickering (10) Ryan Riley (25) Faisal Waris (37) Rick Minerich (15) Samuel Bosch (12) Kit Eason (51) Tuomas Hietanen (80) Gauthier Segay (11)
Database contains 3208 snippets out of which 1719 is public.