www.delorie.com/gnu/docs/guile/guile_449.html   search  
 
Buy GNU books!


Guile Reference Manual

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

39.3.8 Deleting

The procedures for deleting elements from a list either accept a predicate or a comparison object for determining which elements are to be removed.

Scheme Procedure: delete x lst [=]
Scheme Procedure: delete! x lst [=]
Return a list containing all elements from lst, but without the elements equal to x. Equality is determined by the equality predicate =, which defaults to equal? if not given.

delete! is allowed, but not required to modify the structure of the argument list in order to produce the result.

Scheme Procedure: delete-duplicates lst [=]
Scheme Procedure: delete-duplicates! lst [=]
Return a list containing all elements from lst, but without duplicate elements. Equality of elements is determined by the equality predicate =, which defaults to equal? if not given.

delete-duplicates! is allowed, but not required to modify the structure of the argument list in order to produce the result.


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