How do you work with a List of Records in F#? How would you even pass that as an argument in a function?I want to do something like this:
is there a dowload link for the s开发者_StackOverflow社区ource code in Don Syme\'s F#3.0 talk on //build/?You can find the source code of the examples from the talk on his blog:
Cutting sequence into batches of fixed length, making overlapping sliding data windows, getting each n-th item from a sequence - all these tasks can be solved using a single generic slicing function.
I am having trouble with the following code, I am trying to build a lexer. Again I am using the examples from F# for Scientists.
Section 15.3 of the spec mentions the sequence < > with intervening whitespace is an allowed form. It indicates an empty list of generic arguments, which allows for the following oddity.
I have borrowed the following save function to save values of any type to a given file (cheers to John Harrop, writer of F# for scientists).
I faced with the \'quotation\' term and I\'m trying to figure out some real-life examples of usage of it. Ability of having AST for each code expression sounds awesome, but how to use it in real lif开
I am processing a list of strings, you can think of them as lines of a book. When a line is empty it must be discarded. When it is a title, it is \"saved\" as the current title. Every \"normal\" line
When dynamically referencing assemblies in .fsx using #I and #r, VS highlights the following usages of imported types and writes \"The namespace or module \'XXX\' is not defined\". Is it ok?
I\'m trying to learn F# by rewriting some C# algorithms I have into idiomatic F#. One of the first functions I\'m trying to rewrite is a batchesOf where: