Attempt to reimplement functions AsyncRead/AsyncReadLines from 'Rx on the server ' articles (by Jeffrey van Gogh) using idea of AsyncSequence (by Tomas Petricek)
26 people like thisPosted: 13 years ago by Vladimir Matveev
A novel, due to performance inadequacy, abstraction of the "tail-recursive loop" pattern. Approaching what a built-in language feature might look like.
3 people like thisPosted: 13 years ago by Stephen Swensen
Several WinForms controls, like TreeView and ListView, implement methods BeginUpdate and EndUpdate, which suspend repainting of the control while items are being individually added to a control, preventing flicker caused by rapid repainting. But using BeginUpdate and EndUpdate is very imperative, and opens up the possibility for bugs, such as neglecting to call the matching EndUpdate. An obvious improvement would be to create an extension method on types implementing this pattern which takes a unit -> unit lambda which is executed between update pairs. But the pattern is only conventional, rather than through a common base class or interface. Hence this presents a reasonable opportunity to use F#'s statically resolved structural type system to implement a function which only works on Control types with the correct structural signature.
3 people like thisPosted: 13 years ago by Stephen Swensen
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
7 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
4 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
6 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
5 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
3 people like thisPosted: 12 years ago by Cesar Mendoza
Sometimes, we may run into this kind of situation that we want to check if the given method/function has been initialized. We all know this is fairly easy in C#, since we can use delegate to invoke the function , then verify if the value of delegate is null. But in F# , delegate is rarely needed because F# can treat a function as a value, without the need for any wrapper. So , here is an easy way to solve this problem.
6 people like thisPosted: 12 years ago by ZackZhou
Here is the implementation of the three types in WCF Azure, and a sample using WCF in worker role, a WPF test project to invoke the three kinds of data type from worker role. Link is http://fsharp3sample.codeplex.com/SourceControl/changeset/view/13876
4 people like thisPosted: 12 years ago by AndrewXue
A small DSL for graph building by combining weighted paths. It's just a map of edges to weights under the hood, so no need to worry about duplication causing problems. This is part of a larger project I'm calling edgy.
2 people like thisPosted: 11 years ago by Rick Minerich
FsSql is originally here: https://github.com/mausch/FsSql and better sample is there too but I just want to share it.
2 people like thisPosted: 11 years ago by Ash Harley
F# to CSS compiler (CSS EDSL in F#) <+> inspired by Clay and FAKE - https://github.com/Cynede/Failess
7 people like thisPosted: 11 years ago by Heather
Solution to Kata Six: Anagrams from http://codekata.pragprog.com/2007/01/kata_six_anagra.html in F#
1 people like thisPosted: 11 years ago by Suzanna
Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"
381 people like thisPosted: 10 years ago by Muhammad Mugees Asif
Helper modules for different kinds of memoize functions.
1 people like thisPosted: 10 years ago by Daniel Fabian (@iceypoi)
https://twitter.com/kot_2010/status/607115335255392256
0 people like thisPosted: 8 years ago by Tamizhvendan
One of the 99 OCaml problems rewritten in F#
0 people like thisPosted: 8 years ago by Vladimir Khorikov
Learning F# with my 11 year old nephew, he is loving it, swapping out assets and creating new ones, adjusting gravity to what feels right to him and putting in very basic collision detection. Going to keep expanding on it over the year.
4 people like thisPosted: 8 years ago by John Nolan, Callum Simpson
Jelmer047.fsx
1 people like thisPosted: 8 years ago by jelmer
Basic wrapper for storing and reading documents from MongoDB with the official .NET driver.
5 people like thisPosted: 4 years ago by Elliot V. Brown
This snippet shows how to create a WPF custom control library in F#.
4 people like thisPosted: 10 months ago by Fahad
Find every substring that is a palindrome. A bit lazier than the original.
1 people like thisPosted: 13 years ago by Kevin Cantu
ViewModelBase for F# users who want to use it in WPF / Silverlight
16 people like thisPosted: 13 years ago by Fahad
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
33 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
6 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
6 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
3 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
10 people like thisPosted: 12 years ago by Cesar Mendoza
These are F# solutions of Ninety-Nine Haskell Problems which are themselves translations of Ninety-Nine Lisp Problems and Ninety-Nine Prolog Problems. The solutions are hidden so you can try to solve them yourself.
5 people like thisPosted: 12 years ago by Cesar Mendoza
Quick demo of using F# to interop with a native C library. C Library has not been checked for algorithm correctness (but works exactly as the origional).
13 people like thisPosted: 12 years ago by David Klein
A small DSL for graph building by combining paths. It's just a set of edges under the hood, so no need to worry about duplication causing problems. This is part of a larger project I'm calling edgy.
9 people like thisPosted: 11 years ago by Rick Minerich
work with ini file with WritePrivateProfileString, GetPrivateProfileString easy as pie
1 people like thisPosted: 11 years ago by nCdy
Generates the Prime Number Sequence.
1 people like thisPosted: 11 years ago by AdamSpeight2008
http://codekata.pragprog.com/2007/01/kata_five_bloom.html
3 people like thisPosted: 11 years ago by Suzanna
Had to throw together a Haskell-style Either type in F# since Choice is a pain in the ass.
5 people like thisPosted: 10 years ago by Bryan Edds
Match the first elements of an array an returns tail.
3 people like thisPosted: 10 years ago by thinkbeforecoding
263 bytes (unix line endings ;))
6 people like thisPosted: 9 years ago by Simon Dickson
Solution to Viral Math Problem From Vietnam explained on: http://mindyourdecisions.com/blog/2015/05/20/viral-math-problem-from-vietnam-are-you-smarter-than-an-8-year-old/#.VXhmhs-eDRY
1 people like thisPosted: 8 years ago by HK
One of the problems from https://ocaml.org/learn/tutorials/99problems.html
0 people like thisPosted: 8 years ago by Vladimir Khorikov
A snippet demonstrating the F# feature request to relax some of the indentation rules.
2 people like thisPosted: 8 years ago by Tomas Petricek
Do you want to format F# snippets, but cannot easily run the F# Formatting library as part of your documentation processing? We just added F# Formatting as a service (FAAS!) API to the F# Snippets. This code snippet shows how to call the service.
2 people like thisPosted: 7 years ago by Tomas Petricek
I spent a lot of time this week profiling different permutation functions from various places on the internet. The following was by far the fastest:
8 people like thisPosted: 4 years ago by Rick Minerich