S
Suresh Jeevanandam
Guest
In SKILL, I have a list of strings, and I want to build a new string
with each string surrounded with double quotes.
Eg.
ll = list("a" "b" "c")
buidString(ll)
=> "a b c" (<--Not what I want)
buildString(mapcar(lambda((s) sprintf(nil "%L" s)) ll))
=> "\"a\" \"b\" \"c\"" (<-- This is what I wanted.)
Is there any other better/simpler way of doing this?
regards,
Suresh
with each string surrounded with double quotes.
Eg.
ll = list("a" "b" "c")
buidString(ll)
=> "a b c" (<--Not what I want)
buildString(mapcar(lambda((s) sprintf(nil "%L" s)) ll))
=> "\"a\" \"b\" \"c\"" (<-- This is what I wanted.)
Is there any other better/simpler way of doing this?
regards,
Suresh