Daniel

Texas

Jun
30
comment Discriminated unions in modules
Seems like a bug because Success even shows up in Intellisense.
Jun
29
revised F# object refer to self in let bindings before members
deleted 23 characters in body
Jun
26
awarded Critic
Jun
26
awarded Supporter
Jun
26
answered Dictionary comprehensions(?) in F# (converting from C#)
Jun
26
comment F# beginner using let on multiple dependent names
match x with i when i > 0 is neither more idiomatic nor clearer than if x > 0.
Jun
25
revised Is it possible to represent this transformation in a strongly typed manner?
deleted 3 characters in body
Jun
25
comment How to get ToDictionary to work in F#?
No. id is a built-in function that's equivalent to fun x -> x. See the docs on MSDN.
Jun
25
answered How to get ToDictionary to work in F#?
Jun
25
answered F# beginner using let on multiple dependent names
Jun
25
revised Map from discriminated union to enum
deleted 3 characters in body
Jun
25
answered Map from discriminated union to enum
Jun
25
comment Is it possible to represent this transformation in a strongly typed manner?
@ZJM Could explain more of what you want to do with the data? Maybe heterogeneous lists are tangential.
Jun
25
comment Async.fromBeginEnd with WinForms Begin/EndInvoke
You would be surprised at how often that's the issue.
Jun
25
comment Is it possible to represent this transformation in a strongly typed manner?
How is the initial list of maps populated?
Jun
25
comment Async.fromBeginEnd with WinForms Begin/EndInvoke
Have you tried asyncListControls root |> Async.RunSynchronously?
Jun
25
comment Is it possible to represent this transformation in a strongly typed manner?
The types of the values of all the keys are the same, right? Map<'K, 'V> means a map where all keys are of type 'K and all values are of types 'V. Maybe I still don't understand what you're saying...?
Jun
25
comment Is it possible to represent this transformation in a strongly typed manner?
What do you mean by "checking of the types"? We do know that list elements are of the same type (as in System.Type). I thought you were trying to capture the fact that the keys of the resulting map are unique, prior to building the map.
Jun
25
answered Is it possible to represent this transformation in a strongly typed manner?
Jun
25
comment Correctly assigning C# default String to F# variable
Correcting your custom operator: let inline (|??) x y = match x with null -> y | _ -> x
1 2 3 4 5