Tags:
create new tag
view all tags
---+ Package =TWiki::AggregateIterator= combine multiple iterators %TOC% ---++ new(\@list, $unique) Create a new iterator over the given list of iterators. The list is not damaged in any way. if $unique is set, we try to not repeat values. Warning: $unique assumes that the values are strings (so works for cUID's ) ---++ hasNext() -> $boolean Returns false when the iterator is exhausted. <verbatim> my $it = new TWiki::ListIterator(\@list); while ($it->hasNext()) { ... </verbatim> ---++ next() -> $data Return the next entry in the list. The iterator object can be customised to pre- and post-process entries from the list before returning them. This is done by setting two fields in the iterator object: * ={filter}= can be defined to be a sub that filters each entry. The entry will be ignored (next() will not return it) if the filter returns false. * ={process}= can be defined to be a sub to process each entry before it is returned by next. The value returned from next is the value returned by the process function.
E
dit
|
A
nexar
|
Watch
|
Im
p
rimir
|
H
istórico
: r1
|
We
b
|
V
er tópico
|
Ra
w
edit
|
M
ais ações de tópico
Versão do tópico: r1 - 22 Jan 2008
-
TWikiContributor
Home
Site map
Main web
Sandbox web
TWiki web
Web TWiki
User registration
Usuários
Grupos
Índice
Busca
Alterações
Notificações
Fonte RSS
Estatísticas
Preferências
Ver
Raw View
Print version
Find backlinks
History
More topic actions
Editar
Editar modo texto
Attach file or image
Editar preferências do tópico
Marcar novo tópico pai
More topic actions
Referência do usuário
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Manutenção Administrativa
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categorias
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Iniciar sessão
Български
Cesky
Dansk
Deutsch
English
Español
_Français_
Italiano
日本語
한글
Nederlands
Polski
Português
Русский
Svenska
简体中文
簡體中文
E
dit
A
nexar
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Idéias, solicitações, problemas com relação ao TWiki?
Nos dê um retorno
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiAggregateIteratorDotPm
.