### ----------------------------------------------------
### -- List::MoreUtils
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/any.rakutest
### ----------------------------------------------------
use Test;
use List::MoreUtils <any>;

plan 6;

my @list = 1 .. 10000;
is any( * == 5000, @list), True, 'at least 1 element 5000';
is any( * == 5000, (1..10000)), True, 'at least 1 element 5000';
is any( *.defined, @list), True, 'at least one element defined';
is any( !*.defined, @list), False, 'no elements not defined';
is any( !*.defined, (Int,)), True, 'at least one element not defined';
is any( { True }, []), False, 'empty list returns False always';

# vim: expandtab shiftwidth=4


