{
    "mode": "perldoc",
    "parameter": "Data::Stream::Bulk::Util",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Data%3A%3AStream%3A%3ABulk%3A%3AUtil/json",
    "generated": "2026-06-09T16:48:23Z",
    "synopsis": "use Data::Stream::Bulk::Util qw(array);\nuse namespace::clean;\n# Wrap a list in L<Data::Stream::Bulk::Array>\nreturn bulk(qw(foo bar gorch baz));\n# return an empty resultset\nreturn nil();",
    "sections": {
        "NAME": {
            "content": "Data::Stream::Bulk::Util - Utility functions for Data::Stream::Bulk\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.11\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Data::Stream::Bulk::Util qw(array);\n\nuse namespace::clean;\n\n# Wrap a list in L<Data::Stream::Bulk::Array>\nreturn bulk(qw(foo bar gorch baz));\n\n# return an empty resultset\nreturn nil();\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module exports convenience functions for use with Data::Stream::Bulk.\n",
            "subsections": []
        },
        "EXPORTS": {
            "content": "Sub::Exporter is used to create the \"import\" routine, and all of its aliasing/currying goodness\nis of course supported.\n\nnil Creates a new Data::Stream::Bulk::Nil object.\n\nTakes no arguments.\n\nbulk @items\nCreates a new Data::Stream::Bulk::Array wrapping @items.\n\ncat @streams\nConcatenate several streams together.\n\nReturns \"nil\" if no arguments are provided.\n\nfilter { ... } $stream\nCalls \"filter\" on $stream with the provided filter.\n\nunique $stream\nFilter the stream to remove duplicates.\n\nNote that memory use may potentially scale to O(k) where k is the number of distinct items,\nbecause this is implemented in terms of a seen hash.\n\nIn the future this will be optimized to be iterative for sorted streams.\n\nReferences are keyed by their refaddr (see \"id\" in Hash::Util::FieldHash).\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Yuval Kogman <nothingmuch@woobling.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2012 by Yuval Kogman.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Data::Stream::Bulk::Util - Utility functions for Data::Stream::Bulk",
    "flags": [],
    "examples": [],
    "see_also": []
}