News for hackers. Stuff that matters.
Re:Why did Microsoft invest so much in F#? by timrobinson on Monday November 08, 2010 @06:24PM (#1884494)
dict.TryGetValue is an odd example here -- idiomatic F# for a map lookup would be:

    let value = defaultArg (Map.tryFind "foo" dict) "default"
or

    match Map.tryFind "foo" dict with
    | Some v -> v
    | None -> "default"
Re:Why did Microsoft invest so much in F#? by masklinn on Tuesday November 09, 2010 @01:56AM (#1885648)
> dict.TryGetValue is an odd example here

I sure as hell hope so, but that's what fleitz used.