Page 1 of 1

set-nth

Posted: Wed Dec 10, 2003 8:06 pm
by eddier
(nth pos str)
gets a character a position pos in a string str

should

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

?

Eddie

Posted: Wed Dec 10, 2003 9:38 pm
by Lutz
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