令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
2 people like thisPosted: 17 days ago by 方尖碑
Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
7 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
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
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
An asynchronous sequence is similar to the seq
Posted: 15 years ago by Tomas Petricek
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
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
84 people like thisPosted: 14 years ago by Dmitri Pavlenkov
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
async (98) design patterns (18) reflection (19) regex (17) f# (43) string (29) math (35) kata (17) json (16) computation builder (17) fold (22) lists (15) quotations (21) parsing (28) tryfsharp (48) recursion (33) list (56) monad (24) agent (20) silverlight (22)
nagat01 (19) Tomas Petricek (150) David Klein (16) Kit Eason (51) Antonio Cisternino (8) Carsten König (10) Fabio Galuppo (14) fholm (26) Tao Liu (17) Samuel Bosch (12) Taha Hachana (12) Zhukoff Dima (8) Faisal Waris (37) Gauthier Segay (11) Robert Pickering (10) devshorts (11) Brian Berns (9) Ryan Riley (25) Vesa Karvonen (8) Nick Palladinos (66)
Database contains 3208 snippets out of which 1719 is public.