Data::...lk::Nil(3pm)

πŸ“¦
version 0.11 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Data::Stream::Bulk::Nil β€” the perl manual page, bestie edition πŸŽ€

okay so this is Data::Stream::Bulk::Nil, living in the User Contributed Perl Documentation section of your man pages, and it's giving absolutely nothing. On purpose. That's the whole point. πŸ’…


✨ NAME ✨

Data::Stream::Bulk::Nil β€” an empty Data::Stream::Bulk iterator. That's it, that's the girl. An iterator that iterates over the void. πŸ•³οΈβœ¨


🌸 VERSION 🌸

version 0.11 β€” yes bestie, we're on 0.11, keep up πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

return Data::Stream::Bulk::Nil->new; # empty set

literally just that. you call ->new, you get an empty set. no args, no drama, no notes. πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

So like β€” sometimes your resultset is empty and you need an iterator that can represent that. That's this. This iterator can be used to return the empty resultset. Not a fake one, not a "whoops we forgot the data" one β€” the actual empty one, fully sentient about being empty. 🫢


πŸŽ€ METHODS πŸŽ€

πŸ’« is_done

Always returns true. She's done. She's always been done. She was born done. πŸ˜­πŸ’€

πŸ’« next

Always returns undef. You ask for the next thing? There is no next thing. There is only undef, forever. πŸ™ˆ

πŸ’« items / all

Always returns the empty list. Both of them. Same energy. Nothing to see here bestie, literally. ✨

πŸ’« list_cat

Skips $self. Yeah β€” it doesn't even cat itself into the list, because it has nothing to contribute and it knows it. Iconic self-awareness. πŸ’…

πŸ’« filter

Returns $self. Whatever filter you throw at her, she hands herself right back. Unbothered. Unchanged. A queen of consistency. πŸ‘‘

πŸ’« loaded

Returns true. (The one single thing in this entire module that is, in fact, true. 😌)


🌈 AUTHOR 🌈

Yuval Kogman <nothingmuch@woobling.org> β€” thank you for this beautiful little nothing, king πŸ«‘πŸ’–


This software is copyright (c) 2012 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.

fr fr, it's free software β€” same terms as Perl 5 itself, so go off, redistribute, remix, whatever, just keep it legal bestie πŸ’œ

and that's the whole page!! no cap, it was short and it ATE πŸ“

perl v5.32.0 β€’ 2021-01-01 β€’ Data::...lk::Nil(3pm) β€” mwah, bye bestie, go return an empty resultset or whatever πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from