Hi guys,I have a small and interesting problem,but I cannot come with a perfect solution,I would be grateful if you could help me or give me a hint on this. The problem is :
given any list ,say like '(a b c),we will convert it to '[a b c] or '(a (b c)) ,we will convert to '[A [B C]]
In other words,the function should do the same thing as PRINT in LISP,except we change the parentheses to square brackets.But methods like simply printing to a string then replace the parentheses to square brackets don't count. Please give me some idea,thank you.