令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
2 people like thisPosted: 8 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: 4 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: 4 months ago by Tuomas Hietanen
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 command redo-undo implement group the command under Do/Undo category.
71 people like thisPosted: 14 years ago by Tao Liu
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
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
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
F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300
90 people like thisPosted: 14 years ago by fholm
kata (17) tutorial (17) algorithms (25) tryfsharp (48) sequences (48) recursion (33) collections (16) string (29) http (18) lists (15) f# (43) silverlight (22) wpf (20) monad (24) quotations (21) regex (17) math (35) computation builder (17) array (22) pattern matching (15)
Samuel Bosch (12) Faisal Waris (37) Nick Palladinos (66) fholm (26) devshorts (11) Carsten König (10) Joel Huang (13) nagat01 (19) Ankur Dhama (20) Rick Minerich (15) Tomas Petricek (150) Fabio Galuppo (14) David Klein (16) Tao Liu (17) mavnn (17) NIck Palladinos (14) Antonio Cisternino (8) Robert Pickering (10) Zhukoff Dima (8) Brian Berns (9)
Database contains 3208 snippets out of which 1719 is public.