NAME

MooseX::Autobox::Role::Array - Role to add array functions to Moose::Autobox

SYNOPSIS

[ [ 1 .. 5 ], [[ 6 .. 10]] ]->smash;   # [ 1 .. 10 ]

[ 	{ key1 => 'val1', key2 => 'val2' }, { key3 => 'val3', key4 => 'val4' }, 
	{ key5 => 'val5', key6 => 'val6' }, { key7 => 'val7', key8 => 'val8' },
]->reduce(sub { $_[0]->merge($_[1]) }),

# { key1 => 'val1', key2 => 'val2', key3 => 'val3', key4 => 'val4', 
# key5 => 'val5', key6 => 'val6', key7 => 'val7', key8 => 'val8' }, 

DESCRIPTION

This role provides additional array methods not included in Moose::Autobox. More methods will be added over time.

METHODS

smash

Does a Perl6 style flattening of AoA structures.

reduce

Autoboxes the List::Util implementation of reduce.

AUTHOR

Michael Swearingen <mswearingen@gmail.com>

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.