www.delorie.com/gnu/docs/emacs/cl_27.html   search  
 
Buy the book!


Common Lisp Extensions

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.7 Loop Facility

A common complaint with Lisp's traditional looping constructs is that they are either too simple and limited, such as Common Lisp's dotimes or Emacs Lisp's while, or too unreadable and obscure, like Common Lisp's do loop.

To remedy this, recent versions of Common Lisp have added a new construct called the "Loop Facility" or "loop macro," with an easy-to-use but very powerful and expressive syntax.

5.7.1 Loop Basics  `loop' macro, basic clause structure
5.7.2 Loop Examples  Working examples of `loop' macro
5.7.3 For Clauses  Clauses introduced by `for' or `as'
5.7.4 Iteration Clauses  `repeat', `while', `thereis', etc.
5.7.5 Accumulation Clauses  `collect', `sum', `maximize', etc.
5.7.6 Other Clauses  `with', `if', `initially', `finally'


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003