NAME
Data::Frame::Autobox::Array - Additional Array role for Moose::Autobox
VERSION
version 0.0050_01
SYNOPSIS
use Moose::Autobox;
Moose::Autobox->mixin_additional_role(
ARRAY => "Data::Frame::Autobox::Array"
);
[ 1 .. 5 ]->isempty; # false
DESCRIPTION
This is an additional Array role for Moose::Autobox, used by Data::Frame.
METHODS
isempty
my $isempty = $array->isempty;
Returns a boolean value for if the array ref is empty.
uniq
my $uniq_array = $array->uniq;
set($idx, $value)
$array->set($idx, $value);
This is same as the put
method of Moose::Autobox::Array.
repeat
my $new_array = $array->repeat($n);
Repeat for $n
times.
repeat_to_length
my $new_array = $array->repeat_to_length($l);
Repeat to get the length of $l
.
copy
Shallow copy.
intersect
my $new_ary = $array->intersect($other)
union
my $new_array = $array->union($other)
setdiff
my $new_array = $array->setdiff($other)
SEE ALSO
Moose::Autobox, Moose::Autobox::Array
AUTHORS
Zakariyya Mughal <zmughal@cpan.org>
Stephan Loyd <sloyd@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014, 2019 by Zakariyya Mughal, Stephan Loyd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.