(defn get-vector []
(let [rs (atom [])]
(map (fn [x] (swap! rs conj x)) [1 2 3 4])
@rs))
(get-vector)
I think this function should retu [1 2 3 4]; however, it just retus a empty vector [].
(defn get-vector []
(let [rs (atom [])]
(map (fn [x] (swap! rs conj x)) [1 2 3 4])
@rs))
(get-vector)
I think this function should retu [1 2 3 4]; however, it just retus a empty vector [].
برچسب:
نویسنده: استخدام کار