NAME

List::AllUtils::ContainsNull - List subroutines that return additional result: "contains-null/not"

VERSION

This document describes version 0.004 of List::AllUtils::ContainsNull (from Perl distribution List-AllUtils-Null), released on 2021-07-05.

SYNOPSIS

use List::AllUtils::ContainsNull qw(
    max maxstr min minstr
    sum
);

my ($max, $contains_null) = max();              # => (undef, 0)
my ($max, $contains_null) = max(1,2,3,4,5);     # => (5, 0)
my ($max, $contains_null) = max(1,2,undef,4,5); # => (5, 1)
my ($max, $contains_null) = max(undef, undef);  # => (undef, 1)

my ($min, $contains_null) = min();              # => (undef, 0)
my ($min, $contains_null) = min(1,2,3,4,5);     # => (1, 0)
my ($min, $contains_null) = min(1,2,undef,4,5); # => (1, 1)
my ($min, $contains_null) = min(undef, undef);  # => (undef, 1)

my ($sum, $contains_null) = sum();              # => (undef, 0)
my ($sum, $contains_null) = sum(1,2,3,4,5);     # => (15, 0)    # we can display the sum as "15"
my ($sum, $contains_null) = sum(1,2,undef,4,5); # => (15, 1)    # we can display the sum as "15+?"
my ($sum, $contains_null) = sum(undef, undef);  # => (undef, 1) # we can display the sum as "?"

DESCRIPTION

FUNCTIONS

max

maxstr

min

minstr

sum

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/List-AllUtils-Null.

SOURCE

Source repository is at https://github.com/perlancar/perl-List-AllUtils-Null.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=List-AllUtils-Null

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

List::AllUtils::Null

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.