Hi, Am 26.06.2009 um 17:09 schrieb samppi:
@Mr. Gilardi, this is for a one-time only thing. I have a function, called rep*, that builds up a vector from left to right. Another, separate function, called rep+, calls rep*, but it needs to slip in an element at the vector's beginning.
Maybe you can pass the rep+ element as an option to rep*? (defn rep* ([stuff] (rep* [] stuff)) ([v stuff] (reduce conj v stuff))) (defn rep+ [stuff] (rep* [my-val] stuff)) But that might depend on the how my-val is calculated and whether it depends on the output of rep* and whether you call rep* at all from rep+... Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature