Clojure problem with my reduce method using sequnece

前端 未结 0 1168
难免孤独
难免孤独 2020-12-20 21:02

I need to make solution for reduce method using only SEQUENCES and Recursion

My solution:

(defn my-reduce [f acc xs]
(when (seq xs)
(cons (f acc (first         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题