This is used for building things with reflection at runtime. As ConstructorInfo arguments require typed collections, it is necessary when parsing to reflected records to first build up contents and then afterward convert the collected obj[] to a 'a[]. This is finally cast back to obj so it can be used as a ConstructorInfo argument.
29 people like thisPosted: 13 years ago by Rick Minerich
Partitions a sequence into groups linearly by predicate. I use this for breaking up my lazy record parsing with sequences into entity-sized chunks which are then easily digestible. Note: Edited back from the previous edit as these were heavily profiled and yield! tends to be slow. Edit #2: Now correctly using "use" instead of "let" for sequence.GetEnumerator () (Thanks Vladimir Matveev)
1 people like thisPosted: 13 years ago by Rick Minerich
A circular queue implemented over an array.
4 people like thisPosted: 13 years ago by Johann Deneux
A function that nests items of a sequence that do not match a specified predicate under the last item that matches the predicate. The input is a sequence of values and the result is a sequence of pairs where the second element is a list of nested items.
3 people like thisPosted: 12 years ago by Tomas Petricek
A simple yet powerful library for parallel collection processing. Inspired by Clojure's Reducers.
10 people like thisPosted: 11 years ago by Nick Palladinos
Splits array into chunks, returning seq of seqs. Works with F# 3.x
3 people like thisPosted: 11 years ago by Lakret
Idea from Guy L. Steele - Organizing Functional Code for Parallel Execution; or, foldl and foldr Considered Slightly Harmful - https://vimeo.com/6624203
9 people like thisPosted: 9 years ago by Tuomas Hietanen
Utility module to more naturally use mutable Dictionary type from Collections library
5 people like thisPosted: 9 years ago by Ville Vainio
A broken code example demonstrating how it's you can't catch a single throwing enumeration and continue with F#'s IEnumerable.
2 people like thisPosted: 13 years ago by Rick Minerich
A JoinList is a variation on the list type that offers a constant time append operation.
5 people like thisPosted: 13 years ago by Ryan Riley
A function that takes a random subset from a seq<'T>.
1 people like thisPosted: 12 years ago by Taha Hachana
A crazy experiment for "Scalable" collections. Inspired by the paper "Fighting Bit Rot with Types"
5 people like thisPosted: 11 years ago by Nick Palladinos
F# introduction course - Getting data about Titanic passengers using CSV type provider and analyzing them using standard sequence-processing functions known from LINQ. To be used in Try F#.
1 people like thisPosted: 11 years ago by Tomas Petricek
Suggestion for a core library function.
2 people like thisPosted: 10 years ago by Eirik Tsarpalis
Functions to select the first element in an array that passes some predicate, and separately all the other array elements. (I'm not sure if this type of operation has a standard name. Please tweet me if you know!)
8 people like thisPosted: 9 years ago by Kit Eason
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