erlang 入门(1)
摘要:
erl- 命令以.结尾- %为注释- 变量必须大写开头 X = 12.- [1,3.4,true] is a list and {person, 25, "Jason"} is a tuple. - tuple赋值orpattern match{ip, IP} = {ip, "192.168.0.1"}.{Atom, IP} = {ip, "192.168.0.1"}. -variable 和atom ,前者大写开头,后者小写开头- loops are done through recursion如下例-module(factoria 阅读全文
posted @ 2012-01-18 23:07 cutepig 阅读(995) 评论(1) 推荐(0) 编辑