[plt-scheme] Simple scheme idiom?

From: David Richards (vottamusic at verizon.net)
Date: Fri Sep 15 14:17:43 EDT 2006

Is there a simple scheme idiom to do this?

Given:

'(a (b c (d)) e ((f)) g)

Produce:

[z ([z a] [z ([z b] [z c] [z ([z d])])] [z e] [z ([z ([z f])])] [z g])]

- dr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 240 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20060915/8353616f/attachment.bin>

Posted on the users mailing list.