Daniel

Texas

11h
comment F# Recursive Tree Validation
This essentially copies the tree.
23h
answered F# Recursive Tree Validation
1d
comment Discriminated union member methods
If you want every case of a DU to act the same you're not discriminating. :)
1d
comment Discriminated union member methods
That will still require matching to get at the case fields. The only other option is reflection, or classes.
1d
comment Discriminated union member methods
Smells to me like the method should be on the DU. But if not, you can use records to implement an interface.
2d
answered Why does List.append prepend instead of append
2d
comment F# map to C# Dictionary
Summarizing others' answers FTW.
2d
answered F# map to C# Dictionary
Nov
21
revised taking every subsequence in F#?
added 2 characters in body
Nov
21
answered taking every subsequence in F#?
Nov
19
comment Proper F# type annotation for MathNet.Numerics.LinearAlgebra.vector
It should probably be MathNet.Numerics.LinearAlgebra.Vector<float>. [source: Google / trial-and-error]
Nov
17
comment F# use keyword and recursive functions
Regarding your update, you can put the IDisposable in a nested scope using do. See gist.
Nov
14
revised Add spaces before uppercase letters
added 56 characters in body
Nov
14
answered Add spaces before uppercase letters
Nov
14
comment C# implicit and explicit interface implementation for F#
What happens if you get rid of the explicit implementation and have just the implicit one?
Nov
14
comment Names bound to both the decomposed discriminated union components AND an original composed value
It's a minor quibble (and weakly held) that as expresses the intent—to unconditionally bind the value to an identifier—more clearly. There are no other concerns...although I did find, curiously, that the compiled form of & uses an additional variable.
Nov
14
comment Names bound to both the decomposed discriminated union components AND an original composed value
This is clever, but arguably a hack, given that there's syntax specific to this purpose (as). & gives the impression that the first test can fail, which is false.
Nov
14
answered Avoid active pattern overwriting
Nov
12
comment Can I Access Parameters of a Computation Expression?
You're right. I've updated my answer.
Nov
12
revised Can I Access Parameters of a Computation Expression?
added 168 characters in body
1 2 3 4 5