项目中自己觉得比较好的Erlang语法

1.Lists 中处理合并Key相同的Tuple

CashInfo1 = [{?PAY_TYPE_YUANBAO, NeedYuanBao + OldNeedYuanbao}|lists:keydelete(?PAY_TYPE_YUANBAO, 1, CashInfo)]

 

posted @ 2015-06-24 17:04  censai  阅读(234)  评论(0编辑  收藏  举报