Re: Having Problems with excercise noob.

2012-04-26 Thread Jim - FooBar();
On 26/04/12 19:15, Asranz wrote: Hi tahnks! i just need to do that operation. to conbert that string. for example for sums i did (defn sum [s] (apply + (map #(- (int (first %)) (int \0)) (re-seq #"[0-9]" s and it just sums the the numbers but if a have also multiplications, substracyi

Re: Having Problems with excercise noob.

2012-04-26 Thread Asranz
Hi tahnks! i just need to do that operation. to conbert that string. for example for sums i did (defn sum [s] (apply + (map #(- (int (first %)) (int \0)) (re-seq #"[0-9]" s and it just sums the the numbers but if a have also multiplications, substracyions and divsions how i do it?? On

Re: Having Problems with excercise noob.

2012-04-26 Thread Jim - FooBar();
On 26/04/12 19:06, Asranz wrote: Oh sorry i mean i didt wit sums and multiplications but i dont get how it can do it conbined in the same line On 25 abr, 22:18, Asranz wrote: Hi. im having a little problem i need to do a parser like to do operations but i dont get how to do it very well ex.

Re: Having Problems with excercise noob.

2012-04-26 Thread Jim - FooBar();
On 26/04/12 04:18, Asranz wrote: Hi. im having a little problem i need to do a parser like to do operations but i dont get how to do it very well ex. "1+2*3+4-5*6+7*8-9" = 431 i have to do it with sums but i dont get it how i can take all the operations. any advices? if you need a macro th

Re: Having Problems with excercise noob.

2012-04-26 Thread Asranz
Oh sorry i mean i didt wit sums and multiplications but i dont get how it can do it conbined in the same line On 25 abr, 22:18, Asranz wrote: > Hi. im having a little problem i need to do a parser like to do > operations but i dont get how to do it very well > > ex. > >  "1+2*3+4-5*6+7*8-9" = 431