| Data-Stream-Bulk documentation | Contained in the Data-Stream-Bulk distribution. |
Data::Stream::Bulk::Nil - An empty Data::Stream::Bulk iterator
return Data::Stream::Bulk::Nil->new; # empty set
This iterator can be used to return the empty resultset.
Always returns true.
Always returns undef.
Always returns the empty list.
Skips $self
Returns $self
Returns true.
Yuval Kogman <nothingmuch@woobling.org>
This software is copyright (c) 2010 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Data-Stream-Bulk documentation | Contained in the Data-Stream-Bulk distribution. |
package Data::Stream::Bulk::Nil; BEGIN { $Data::Stream::Bulk::Nil::AUTHORITY = 'cpan:NUFFIN'; } BEGIN { $Data::Stream::Bulk::Nil::VERSION = '0.08'; } # ABSTRACT: An empty L<Data::Stream::Bulk> iterator use Moose; use namespace::clean -except => 'meta'; with qw(Data::Stream::Bulk) => { -excludes => [qw/loaded filter list_cat all items/] }; sub items { return () } sub all { return () } sub next { undef } sub is_done { 1 } sub list_cat { my ( $self, $head, @rest ) = @_; return () unless $head; return $head->list_cat(@rest); } sub filter { return $_[0] }; sub loaded { 1 } __PACKAGE__->meta->make_immutable; __PACKAGE__; __END__