i want to write a code which work like below

(transform (+ - + - / + - + - + + + / + + + - - - / + + + - - - - +)

>> +-+- +-+-+++ +++--- +++----+

That is, code transform which combines the ones till the slash to make a word and puts a space between the words

I'm pretty sure you want something that works like the following:

(transform '(+ - + - / + - + - + + + / + + + - - - / + + + - - - - +))

It would make no sense to make transform into a macro.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.