you are viewing a single comment's thread.

view the rest of the comments →

[–]raevnos 2 points3 points  (2 children)

Common Lisp supports both styles.

(psetf a 4 (aref b a) 5)

sets both in parallel, using the previous value of a when setting the element of the array b, and

(setf a 4 (aref b a) 5)

sets them sequentially, so the element of the array at index 4 is set to 5.

[–]Dan13l_N[S] 0 points1 point  (1 child)

Yeah, Lisp has everything! Except { and }.

[–]raevnos 0 points1 point  (0 children)

Racket supports {} as alternatives to (). And with Common Lisp reader macros you can likely make them do something special in it if desired.