Code: Select all
e.g
(myfunc "str1" "str2" 3 4 5)
(setq myvalues '(3 4 5))
Code: Select all
How can I convert the content of myvalues list to a set of values so that i can pass them to "myfunc" as arguments?
Code: Select all
e.g
(myfunc "str1" "str2" 3 4 5)
Code: Select all
How can I convert the content of myvalues list to a set of values so that i can pass them to "myfunc" as arguments?
Code: Select all
(setq myvalues '(3 4 5))
(myfunc "str1" "str2" (myvalues 0)(myvalues 1)(myvalues 2))
Code: Select all
(define (my-func s1 s2 a b c)
(dup (string s1 s2 a b) c))
> (my-func "o" "-" 1984 9 3)
"o-19849o-19849o-19849"
> (apply my-func (cons "o" (cons "-" '(1984 9 3))))
"o-19849o-19849o-19849"
> (apply my-func (append '("o" "-") '(1984 9 3)))
"o-19849o-19849o-19849"