tag:blogger.com,1999:blog-18281936.post7005000623677118642..comments2024-03-14T00:17:55.927-07:00Comments on John Liao's Blog: Learning WPF with F# - The Dock and the GridJohn Liaohttp://www.blogger.com/profile/04740715435312568366noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-18281936.post-92215322648524243172010-09-14T10:18:38.477-07:002010-09-14T10:18:38.477-07:00Thanks! That's not an idiom I'm familiar w...Thanks! That's not an idiom I'm familiar with so I appreciate you pointing it out.johnnoreply@blogger.comtag:blogger.com,1999:blog-18281936.post-46995121660664360542010-09-11T15:38:14.222-07:002010-09-11T15:38:14.222-07:00The getdock function in the first example could be...The getdock function in the first example could be simplified like this:<br /><br />let getdock i = enum<Dock> i<br /><br />(But I don't know whether this syntax was available in pre-2.0 F#.)wmeyernoreply@blogger.comtag:blogger.com,1999:blog-18281936.post-66220003740583134692008-01-10T10:24:00.000-08:002008-01-10T10:24:00.000-08:00Thanks for pointing that out. I somehow missed th...Thanks for pointing that out. I somehow missed the fact that F# have zip already in List.zip.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18281936.post-49536412643844531782008-01-09T11:32:00.000-08:002008-01-09T11:32:00.000-08:00> [func ha hb] @ (zipWith func ta tb)func ha hb ::...> [func ha hb] @ (zipWith func ta tb)<BR/><BR/>func ha hb :: zipWith func ta tb<BR/><BR/>Moreover, zipWith already exists in OCaml standard library : List.map2. Seems it is in Microsoft.FSharp.Collections.List too.Anonymousnoreply@blogger.com