From: Lars Hellström <Lars.Hellstrom@re...> - 2012-08-20 17:30:14
Trevor Davel (Twylite) skrev 2012-08-15 19.37:
> Okay, so we actually have three distinct pieces of functionality being
> (1) [continue $value] to jump out of the current iteration of
> mapeach/lmap and lappend $value to the accumulator, as an alternative to
> having to structure the code such that the iteration result is $value
> (origin Brian Griffin).
I'm a bit surprised that noone seems to have noticed (or at least seen it
worth to point out) that this contradicts a mechanism proposed in the TIP.
The problem is that there is no way to distinguish
return -code continue -level 0 ""
return -code continue -level 0
The former is supposed to append an empty string element to the accumulator
list. The latter is supposed to not append an element.
What could work would be that the return value associated with a -code
continue is interpreted by mapeach/lmap as a list of elements to append to