internal package Foswiki::Iterator::FilterIterator

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

ClassMethod new( $iter, $sub, $data )

Construct a new iterator that will filter $iter based on the results from $sub. $sub should return 0 if the next() from $iter should be filtered and 1 if it should be treated as the next item in the sequence.

$data is an optional arbitrary data item which will be passed to $sub in $_[1]

Topic revision: r1 - 02 May 2016, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding wiki.cifrabar.ru? Send feedback