摘要:
FP 风格 var ops = { "plus": (x,y)=>x+y, "mul" : (x,y)=>x*y, "and" : (x,y)=>x&y } function operation(op, array) { return array.slice(1).reduce(ops[op], array[0]); } operation("plus", array);... 阅读全文
posted @ 2018-12-19 10:48
G-Beniot
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号