摘要: 第二题:-module(for).-export([for/3,empty_proc/0,post_msg/1]).for(N,N,F)->[F()];for(I,N,F)->[F() | for(I+1,N,F)].empty_fun()-> receive _Any-> io:format("~w is exit",[self()]) end.post_msg([]) -> void;post_msg([Head | Tail])-> Head ! "Other", post_msg(Tail).在shell里面输 阅读全文
posted @ 2012-05-31 17:00 linyilong 阅读(407) 评论(0) 推荐(0) 编辑