Never mind, I realized that my solution doesn't quite answer your
question. Here's another attempt.

--Convenience Functions--
(defn indexed [coll]
  (map vector coll (iterate inc 0)))
(defn between [n min max]
  (and (< n max) (>= n min)))

--Your Specific Case--
(for [[e i] (indexed v)]
  (if (between i k (- (count v) k))
    (modify-element e)
    e))

-Patrick

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to