令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
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 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
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.
74 people like thisPosted: 15 years ago by Rick Minerich
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
77 people like thisPosted: 14 years ago by fholm
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
75 people like thisPosted: 15 years ago by Tomas Petricek
Some simple functions for writing more idiomatic F# tests with NUnit.
91 people like thisPosted: 15 years ago by Ryan Riley
array (22) agent (20) html (16) computation builder (17) async (98) design patterns (18) dsl (23) learning f# (16) json (16) http (18) lists (15) game (32) regex (17) sequences (48) silverlight (22) pattern matching (15) seq (54) string (29) kata (17) sequence (32)
Antonio Cisternino (8) mavnn (17) Evgeniy Andreev (13) Gauthier Segay (11) fholm (26) NIck Palladinos (14) Joel Huang (13) Carsten König (10) Samuel Bosch (12) Taha Hachana (12) Eirik Tsarpalis (89) Tomas Petricek (150) Cesar Mendoza (17) Tuomas Hietanen (80) Nick Palladinos (66) Phillip Trelford (87) nagat01 (19) Rick Minerich (15) Brian Berns (9) Robert Pickering (10)
Database contains 3208 snippets out of which 1719 is public.