2014年3月28日

erlang技术2014 3 28 复合函数

摘要: Test = fun(X) -> (fun(Y) -> Y * X end) end.Test(3). //定义了外层的fun(X).Result = Test(3).Result(2). //定义了fun(Y).%shop.erlcost(apple)->1;cost(orange) ->2;co... 阅读全文

posted @ 2014-03-28 14:51 Vinlan 阅读(96) 评论(0) 推荐(0)

导航