|
|
|
|
|
by andsoitis
1114 days ago
|
|
> In real Lisp code you'd likely indent it something like this: Not only would that not be idiomatic, the operator for modulus in Common LISP is mod not %. and the brackets you and the parent used in the s-expr are around the wrong groups of symbols. So you're more likely to see: (mod (* (+ 1 x) (- 2 3)) x) or maybe with some limited indentation, such as: (mod (* (+ 1 x) (- 2 3))
x)
|
|
No they're not. Yours is wrong. Multiplication has higher priority than addition so the order of evaluation begins with (x * 2) not (1 + x).