Erlang 笔记
来源:互联网 发布:mac能玩哪些腾讯游戏 编辑:程序博客网 时间:2024/04/28 01:31
1.不能够声明指定类型的变量,变量的类型是在运行时确定的
2.The scope of an Erlang Variable is limited to the function it is declared in.
3.No global state
4.Summary of less painfull loops
if you need to perform an action for each element in a list (returning no value) use lists:foreach
if you need to compute a value for each element in a list use list:map
if you need to accumulate a value for each element in a list use lists:foldl or lists:foldr
5.,表示语句块中语句之间的间隔,
;表示后面还有候选分支
.表示函数结束
6.if the erlang philosophy towards errors could be summarized in a slogan,it would be "Let it fail"
7.-include_lib 会忽略应用的版本号
8.“http://” ++ Rest = “http://www.erlang.org” Rest值为"www.erlang.org",习惯用法
9.
-define(Value(call),io:format("~p=~p~n",[??call,call])).
test()->?Value(length([1,2,3])).
>macros1:test().
"length([1,2,3])"=3
10.
It is important to order the alternatives properly.Erlang will stop at the first match it finds,so make sure you order the alternatives from most restrictive to least restrictive.
- Erlang 笔记
- Erlang笔记
- Erlang笔记(07) - Erlang循环
- erlang学习笔记1
- Erlang 笔记 1
- erlang 语言学习笔记
- erlang学习笔记
- erlang基础笔记
- Erlang自学笔记(一)
- Erlang自学笔记(二)
- Erlang自学笔记(三)
- Erlang学习笔记
- Erlang学习笔记
- erlang配置Lua笔记
- Erlang 基础学习笔记
- Erlang-fun函数笔记
- erlang 的分布式笔记
- Erlang笔记(06) - 输入输出
- LED学习及一个花样流水灯的实现
- sql语言艺术(2)简洁的SQL
- Excel隔行求和计算公式
- spring课堂笔记
- 王爽汇编语言 实验9
- Erlang 笔记
- 消息窗口的完成
- 微软等数据结构+算法面试100题005
- 递归的几个应用举例
- MFC各种控件属性汇总
- 将压缩文件与图片合并
- gentoo 安装
- 我要从这里扬帆起航~~
- 一个简单的DirectX例子