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
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
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.
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
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