为什么80%的码农都做不了架构师?>>>
(= (__ '(1 2 3 3 1)) 5)
(fn [a](loop [i 0a a](if (empty? a) i(recur (inc i) (rest a)))))
其它答案
#(reduce (fn [x y] (inc x)) 0 %)
为什么80%的码农都做不了架构师?>>>
(= (__ '(1 2 3 3 1)) 5)
(fn [a](loop [i 0a a](if (empty? a) i(recur (inc i) (rest a)))))
其它答案
#(reduce (fn [x y] (inc x)) 0 %)
转载于:https://my.oschina.net/diqye/blog/522131