University of Natural Resources and Life Sciences (BOKU)
Institute of Computational Biology

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]

22 Nov 2024 - 16:27 Foswiki v2.0.2