Returns subsets of strings which match a specified prefix. The prefix is built incrementally by repeatedly calling a search function.
1 people like thisPosted: 13 years ago by Johann Deneux
A circular queue implemented over an array.
4 people like thisPosted: 13 years ago by Johann Deneux
A vector type with units of measure built on top of XNA's Vector3. Not complete, the point is mainly to show how to use generic units of measure to adapt an existing type.
9 people like thisPosted: 12 years ago by Johann Deneux
The standard windows.forms text box supports auto-completion, but only for single-line text boxes. The code below can be used to add auto-completion against a fixed set of words to any text box that inherits from TextBoxBase.
5 people like thisPosted: 12 years ago by Johann Deneux
Repeatedly call a function until it returns a positive result. Implemented using sequences.
3 people like thisPosted: 13 years ago by Johann Deneux
Copy an array into a new one, changing the value at index 42 to 123. Uses "function" and pattern patching.
1 people like thisPosted: 13 years ago by Johann Deneux
A typical problem when working with arrays and indices is that it's easy to access an array with the wrong index. Units of measure in F# can be applied to integers, which makes it possible to abuse them to prevent this kind of error.
7 people like thisPosted: 12 years ago by Johann Deneux