摘要:
转自: http://blogold.chinaunix.net/u3/104903/showart_2074188.html.列表操作lists:foreach (fun(X) -> io:format("E=~p~n",[X]) end, [1,2,3]).lists:duplicate (10, 16#f). % [15,15,15,15,15,15,15,15,15,15]"abc-123" -> "abc"no_vsn(Name) -> lists:takewhile (fun($-)->false; 阅读全文