上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 49 下一页
摘要: 1. Simple values: Functions, parameters, and top-level items defined using let or pattern matching.Examples: form, text, wordCount.简单值:函数,参数和顶层成员定义都使用let或模式匹配来实现。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->letform=newForm()lethighLowab=match 阅读全文
posted @ 2009-11-29 18:16 moonz-wu 阅读(328) 评论(1) 推荐(0) 编辑
摘要: Composing Functions with >>使用>>操作符来组合函数You saw earlier how to use the |> “forward pipe” operator to pipe values through a number of functions. This was a small example of the process of computing with functions, an essential and powerful programming technique in F#. In this section, w 阅读全文
posted @ 2009-11-29 01:03 moonz-wu 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 今天继续学习F#,主要的内容是关于.net库在F#中的引用。首先我们引入一些常用的.net名称空间到F#环境open Systemopen System.Netopen System.IOopen System.Textopen System.Xmlopen System.Windowsopen System.Windows.Forms第一个例子,先展示一下F#强大的兼容性,获取一个网址的HTML代码let webSite = "http://www.google.com/"let getHtmlByUrl(url: string) = // 注意这里,由于我们在使用Htt 阅读全文
posted @ 2009-11-24 00:58 moonz-wu 阅读(525) 评论(0) 推荐(0) 编辑
摘要: F#第二课今天又学习了一下F#,对这门新兴的语言又有了一点新的认识。下面我们体验一下VS2010 Beta2与F#的威力吧。首先我们利用VS2010来创建一个新的F#工程,这跟其他所有.Net的语言一样没有什么特别的。接下来我们就要开始写一个F#程序,既然F#是函数式编程语言,那我们就先来写一个比较简单的函数。let CharNum str = let num = String.length str num那么在以前,我们需要将这个文件导入到F#的交互环境中编译并运行。这个过程稍微麻烦了一些。现在VS2010可以帮我们解决这个烦恼,你只需要将F#的交换窗口在VS IDE中显示出来就可以(Vi. 阅读全文
posted @ 2009-11-22 23:33 moonz-wu 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 金融危机下的创新:微软Tech.Ed 2009见闻这次微软2009Tech.Ed大会正式宣告结束。回顾这三天的与会经历,我对微软这次Tech.Ed的评价是:创新,节约,激情。微软这次发布的产品几乎都是在全球金融危机中开发出来的,因此产品策略中带有非常明显的金融危机痕迹。无论是win7,win2008R2,还是Exchange2010和SQL server2010,无一不透露着能帮助客户节约成本的概... 阅读全文
posted @ 2009-11-17 08:23 moonz-wu 阅读(258) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 49 下一页