set-nth

Q&A's, tips, howto's
Post Reply
eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

set-nth

Post by eddier »

(nth pos str)
gets a character a position pos in a string str

should

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

?

Eddie

Lutz
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Post Reply