fergus
fergus

Reputation: 75

How to add brackets to each item in a list?

I am trying to make a method that adds a bracket to each item in a list, e.g '(h e l l o) will become '((h) (e) (l) (l) (o)).

Upvotes: 0

Views: 109

Answers (1)

akond
akond

Reputation: 16035

Something like this:

(map list '(h e l l o))

Upvotes: 1

Related Questions