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.
0 people like thisPosted: 1 month 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
0 people like thisPosted: 1 month ago by Tuomas Hietanen
Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: 2 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/
0 people like thisPosted: 2 months ago by Tuomas Hietanen
A functional wrapper around MailboxProcessor that simplifies agent-based concurrency, adds error handling via events, and provides convenience functions to avoid common pitfalls when working with asynchronous message processing in F#.
2 people like thisPosted: 3 months ago by halcwb
Timestamp: Time format in ISO 8601 with timezone. YYYYMMDDhhmmssffff+zzzz For example 2011-05-17 19:01:10.000 -0200 would be: 20110517190110000-0200
0 people like thisPosted: 4 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: 14 years ago by Novox
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.
70 people like thisPosted: 14 years ago by Rick Minerich
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
89 people like thisPosted: 14 years ago by fholm
Show's how to define units of measure to add stronger typing to your numerical functions.
75 people like thisPosted: 14 years ago by Robert Pickering
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.
70 people like thisPosted: 14 years ago by Rick Minerich
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.
83 people like thisPosted: 14 years ago by Dmitri Pavlenkov
agent (20) sequence (32) learning f# (16) fold (22) string (29) web (29) list (56) computation expression (15) kata (17) json (16) wpf (20) reflection (19) regex (17) http (18) design patterns (18) mailboxprocessor (27) dsl (23) monad (24) seq (54) silverlight (22)
Ryan Riley (25) Zhukoff Dima (8) Phillip Trelford (87) devshorts (11) Robert Pickering (10) Tomas Petricek (150) Antonio Cisternino (8) Rick Minerich (15) Gauthier Segay (11) NIck Palladinos (14) Tao Liu (17) mavnn (17) Eirik Tsarpalis (89) Fabio Galuppo (14) Samuel Bosch (12) Kit Eason (51) Evgeniy Andreev (13) nagat01 (19) Taha Hachana (12) Tuomas Hietanen (80)
Database contains 3206 snippets out of which 1719 is public.