newLISP Fan Club

Forum => newLISP in the real world => Topic started by: eddier on December 10, 2003, 12:06:48 PM

Title: set-nth
Post by: eddier on December 10, 2003, 12:06:48 PM
(nth pos str)

gets a character a position pos in a string str



should



(set-nth 1 "abcd" "k") => "akcd"



?



Eddie
Title:
Post by: Lutz on December 10, 2003, 01:38:54 PM
sounds reasonable, this should also work:



(set-nth 1 "abcd" (append $0 $0)) => "abbcd"



may be to late for 7.4.0 but for 8.0



Lutz