>>>>> "VY" == Volkan YAZICI <[EMAIL PROTECTED]> writes:
[...]
>> Soru bir listeye isteğimiz pozisyona eleman ekleme işlemini
>> nasıl yapabiliriz ?
VY> set-car! ya da set-cdr! gibi bir şeyler olması lazım. (En
VY> azından Scheme'de bu böyle.)
car cdr nth ve elt vs. setf ile kullanilabiliyor. Neyse, tam liste surada:
http://www.lispworks.com/documentation/HyperSpec/Body/05_abb.htm
Mesela:
CL-USER> (setf *foo* '(a b c d e f))
(A B C D E F)
CL-USER> (setf (nth 3 *foo*) 3)
3
CL-USER> *foo*
(A B C 3 E F)
yahut
CL-USER> (setf (subseq *foo* 2 4) '(g g))
(G G)
CL-USER> *foo*
(A B G G E F)
CL-USER>
BM
_______________________________________________
cs-lisp mailing list
[email protected]
http://church.cs.bilgi.edu.tr/lcg
http://cs.bilgi.edu.tr/mailman/listinfo/cs-lisp