[comp.emacs] GNU LISP quiz question

cracraft@ccicpg.UUCP (Stuart Cracraft) (08/16/87)

GNU LISP Quiz Question
----------------------
Write a GNU LISP function that takes lists of 
the following form (list can be arbitrarily
deep at any level):

   (A (B (C (N) D) E (F G (M))))

And expands them to text with full elaboration of the depth, listing
all possible variations taking depth into account. The atoms should
be listed two per line. Expansion of above expression follows:

Start expansion:
    A  B
    C  N
    ...blank line...
    A  B
    D
    ...blank line...
    A  E
    F  
    ...blank line...
    A  E
    G  M
End expansion

    Stuart