Though I'm opposed to posting solutions to school assignments --in
principle-- here's this little something in the hope that it might get you
interested in lisp:
(defn value [e]
(cond (number? e) e
(= (second e) '+) (+ (value (first e)) (value (nth e 2)))
(= (second e) '-) (- (
On 02/05/12 04:19, Asranz wrote:
so i need some others functions to parse it and then just doing the
infix i guess?
basically you need to find a way to convert your string into a
data-structure (a list) and then you can use a macro to rearrange things
in any way you like...as long as it is a st
thanks a lot for all your help i really apreciate it.
so i need some others functions to parse it and then just doing the
infix i guess?
On 1 mayo, 19:54, "Jim - FooBar();" wrote:
> On 02/05/12 01:04, Asranz wrote:
>
> > Hello so i got this problem agian i have been trying to resolve it
> > with
oh please if u can teach me!
On 1 mayo, 21:29, Armando Blancas wrote:
> > i just need to evaluate in infix a string "(1 +2 (4 * 5)"
>
> Check out The Little Schemer. It'll teach you the techniques for doing this.
--
You received this message because you are subscribed to the Google
Groups "Clo
>
> i just need to evaluate in infix a string "(1 +2 (4 * 5)"
>
>
Check out The Little Schemer. It'll teach you the techniques for doing this.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups
On 02/05/12 01:04, Asranz wrote:
Hello so i got this problem agian i have been trying to resolve it
with macros but i dont get the idea.
i just need to evaluate in infix a string "(1 +2 (4 * 5)" but dont
get it to do it with macros the part of changing the string type.
Thanks,
I can help yo
Hello so i got this problem agian i have been trying to resolve it
with macros but i dont get the idea.
i just need to evaluate in infix a string "(1 +2 (4 * 5)" but dont
get it to do it with macros the part of changing the string type.
Thanks,
--
You received this message because you are subs