0
Just like

The String is

> "((1 0)(0 1))" 
required  
>((1 0)(0 1))

I am also using intern function but it returns in form of ((1\ 0)(0\ 1))

1 Answer 1

8

You can use read-from-string:

(read-from-string "((1 0)(0 1))")

This function has many parameters and returns two values: the first is what you need, the list:

 CL-USER> (car (read-from-string "((1 0)(0 1))"))
 (1 0)

You can read about this function in the official documentation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.