[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: common-lisp@su-ai.ARPA*Subject*: Implementation of MAP, SOME, EVERY, etc...*From*: Dan Corkill <cork%umass-cs.csnet@csnet-relay.arpa>*Date*: Tue, 19 Mar 85 11:58 EST

There is an easily made implementation error in MAP, SOME, EVERY, etc. The published semantics indicate that these functions use the length of the shortest argument sequence to determine how many iterations to perform (and in this way parallel the semantics of mapc, mapcar, etc.). Thus it would appear that: (map 'list '+ '(1 2 3) (star 2)) where star builds a circular list of its argument should be legal and return => (3 4 5). Implementations that use length to check the length of argument sequences will break on such a call. Dan Corkill (Cork@UMass)

- Prev by Date:
**[Gall: Bug Report]** - Next by Date:
**Default attributes of copy due to SUBSEQ** - Previous by thread:
**Re: [Gall: Bug Report]** - Next by thread:
**Implementation of MAP, SOME, EVERY, etc...** - Index(es):