![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Erlang
文章平均质量分 62
m00z
https://m00z.github.io
http://www.weibo.com/m0zz
展开
-
Erlang的list-at-a-time操作 与 Perl的函数型编程
2> Even = fun(X) -> ( X rem 2 ) =:= 0 end.#Fun3> List = [1, 2, 3, 4, 5, 6, 7, 8].[1,2,3,4,5,6,7,8]4> lists:map(Even, List).[false,true,false,true,false,true,false,true]5> lists:filter(Even原创 2011-06-29 16:42:00 · 1388 阅读 · 0 评论 -
Erlang 编译时出现"no such file or directory" 与 当前工作目录问题
初学Erlang,编译.erl文件时,提示:>1 c(some_module)./some_module.erl:none: no such file or directoryerror这是由于.erl文件并未在Erlang当前工作目录中导致。在Erlang shell中输入如下函数,获取当前工作目录:>1 pwd().可以使用如下函数切换工作目录:>1原创 2011-06-28 17:42:00 · 5905 阅读 · 1 评论