im playing around with a small rather pointless function.
insetad of: (defop welc req
(w/link (w/link (w/link (w/link (pr "!")
(pr "Sweden"))
(pr "to"))
(pr "cooommee))
(pr "Weeelll")))
i want to write (defop welc req
(xw "Weeell" "ccoommee" "too" "Sweden" "!"))
(def xw(n)
(let l '()
(for x 1 n
(= l (join l '(w/link))))pr l))
xw produces a list (w/link w/link w/link)
if i enter 3 as nbr.
i want a list ((w/link (w/link (w/link))
but how can i have a ( in a list?
i should use something else than a list?
liek a string? but it should be transformed to code at somepoint...
and obv i will add to xw since at the moment it wont do what
welc expects it to. |