Daniel

Texas

Jan
23
comment F# null test fails to detect null values
Those should work. Something else is going on.
Jan
21
comment How do I intersect two Maps by their keys in F#
Nice solution, but match m2.TryFind k with... reads a bit better than using Option.fold IMO and avoids some allocations.
Jan
14
awarded Nice Answer
Dec
27
awarded Nice Question
Dec
23
comment Event.create in f#?
My guess is it's been replaced with new Event<'T>().
Dec
19
comment How to access F#.Data.SqlClient Record properties dynamically
SqlDataReader seems better suited to this than a type provider.
Dec
18
comment F# equivalent of `is` keyword in C#?
You're right. It requires translation, i.e., reading :? as "is"—much the same as reading > as "greater than."
Dec
17
comment F# equivalent of `is` keyword in C#?
@sacha: Given that there's a built-in type test operator (:?), is<'T> doesn't provide much value. Compare cat is<Animal> to cat :? Animal.
Dec
12
answered How to compare individual values in f# matrices?
Dec
12
comment F# "Stateful" Computation Expression
Since you're apparently doing black magic you're on your own. :)
Dec
12
comment F# "Stateful" Computation Expression
In that case, a simpler option might be defining an ofList function for your type.
Dec
12
answered F# "Stateful" Computation Expression
Dec
12
awarded Notable Question
Dec
10
comment Struct in NXC and F#
You want to create a zeroed array of structs?
Dec
10
comment Reflection.Emit unsafe code
Ah, too easy. Glad you figured it out.
Dec
10
comment How can I Implement my own List.partition using tail-recursion?
@user2023861: That was a mistake. I copied/tweaked the code from the referenced answer and missed that. It's fixed. Good catch.
Dec
10
revised How can I Implement my own List.partition using tail-recursion?
deleted 50 characters in body
Dec
10
answered Reflection.Emit unsafe code
Dec
10
answered How can I Implement my own List.partition using tail-recursion?
Dec
10
comment How can I Implement my own List.partition using tail-recursion?
It's best to just call List.rev before returning the accumulator. CPS will perform much worse.
1 2 3 4 5