摘要:
第二题:-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里面输 阅读全文