Skip Navigation

The Computer Journal 1979 22(4):376-379; doi:10.1093/comjnl/22.4.376
© 1979 by British Computer Society
This Article
Right arrow Full Text (PDF)
Right arrow Alert me when this article is cited
Right arrow Alert me if a correction is posted
Services
Right arrow Email this article to a friend
Right arrow Similar articles in this journal
Right arrow Similar articles in ISI Web of Science
Right arrow Alert me to new issues of the journal
Right arrow Add to My Personal Archive
Right arrow Download to citation manager
Right arrow Search for citing articles in:
ISI Web of Science (1)
Right arrowRequest Permissions
Google Scholar
Right arrow Articles by Gordon, M. J. C.
Right arrow Search for Related Content
Social Bookmarking
 Add to CiteULike   Add to Connotea   Add to Del.icio.us  
What's this?

On the power of list iteration

M. J. C. Gordon *

Department of Computer Science, Edinburgh University, James Clerk Maxwell Building, The King's Buildings, Mayfield Road, Edinburgh, UK

The list iteration construct lit is defined by:

[equation: see PDF]

Many simple list processing functions can be programmed as expressions built up from the LISP primitives (car, cdr, cons,... etc.) and lit, examples include most of the operations of Boolean algebra and primitive recursive arithmetic (with the integer n represented by a list (NIL...:NIL) of n NIL's). This latter example shows that the equivalence of list iteration programs is undecidable. In the paper the use of lit is illustrated and two theorems are proved which exhibit limitations on its power; these enable one to show that, for example, LISP's equal and flatten (where e.g. flatten [(1 (2 3) 4 ((5) 6))] = (1 2 3 4 5 6)) cannot be computed by list iteration alone.


Received November 1977.

* Department of Computer Science, Edinburgh University, James Clerk Maxwell Building, The King's Buildings, Mayfield Road, Edinburgh EH9 3JZ


Add to CiteULike CiteULike   Add to Connotea Connotea   Add to Del.icio.us Del.icio.us    What's this?




Disclaimer:
Please note that abstracts for content published before 1996 were created through digital scanning and may therefore not exactly replicate the text of the original print issues. All efforts have been made to ensure accuracy, but the Publisher will not be held responsible for any remaining inaccuracies. If you require any further clarification, please contact our Customer Services Department.