list相关的习题
摘要:
代码如下 1 -module(adv_list). 2 -export([filter/2, reverse/1, concatenate/1, flatten/1]). 3 4 filter(List, Value) -> 5 FiltedList = [X || X<-List, X=<Value], 6 io:format("filted:~w~n", [FiltedList]). 7 8 reverse(List) -> 9 RevertedList = revert(List, []),10 io:format("reverted 阅读全文
posted @ 2012-12-21 17:22 应无所住而生其心 阅读(317) 评论(0) 推荐(0) 编辑