> I'm trying to pass a variable through a series of functions, which may
> change the value of the variable. However, the next function in line
> uses the original value, rather than the changed value. Here's a
> pseudo-code of what I'm doing.
>
> (defn process-1 [s]
> ; change value of s then return it
>  s)
>
> (def s "something")
> (do
>  (process-1 s)      ; variable s is changed here
>  (process-2 s))    ; process-2 uses the original value of s, not the
> return value from process-1

There is no idiomatic way to do this in Clojure. If you explain the
problem (and not your proposed solution) we might be able to find a
nice and clean way of solving the problem.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

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

Reply via email to