令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
4 people like thisPosted: 3 months ago by 方尖碑
Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
8 people like thisPosted: 4 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.
2 people like thisPosted: 7 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
2 people like thisPosted: 7 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: 7 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: 7 months ago by Tuomas Hietanen
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
374 people like thisPosted: 15 years ago by Blake Coverett
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
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: 15 years ago by Dmitry Soshnikov
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.
127 people like thisPosted: 15 years ago by Blake Coverett
Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.
100 people like thisPosted: 15 years ago by Neil Carrier
F# implementation of RO_ref from the "Effective ML" talk.
93 people like thisPosted: 15 years ago by fholm
staging (18) lazy (20) lists (15) algorithms (25) silverlight (22) generic programming (17) pattern matching (15) collections (16) computation expression (15) agent (20) parsing (28) recursion (33) sequences (48) seq (54) sequence (32) game (32) wpf (20) tutorial (17) f# (43) mailboxprocessor (27)
devshorts (11) Gauthier Segay (11) Kit Eason (51) Faisal Waris (37) NIck Palladinos (14) Taha Hachana (12) Ankur Dhama (20) Tao Liu (17) mavnn (17) Tuomas Hietanen (80) Phillip Trelford (87) Eirik Tsarpalis (89) Antonio Cisternino (8) Brian Berns (9) Nick Palladinos (66) Fabio Galuppo (14) Joel Huang (13) Ryan Riley (25) Cesar Mendoza (17) Rick Minerich (15)
Database contains 3208 snippets out of which 1719 is public.