X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FList.pm;h=2c45a4ff49767f5c8a98022e20a6b83d00efa7b0;hb=31d40d7362f4154746428525561af751208b0805;hp=4431dc12a57371c939f25c72af758c024c95fba7;hpb=6cf5bcf23399cc82e234f91a2e78f262bf70eab1;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/List.pm b/lib/Moose/Autobox/List.pm index 4431dc1..2c45a4f 100644 --- a/lib/Moose/Autobox/List.pm +++ b/lib/Moose/Autobox/List.pm @@ -5,14 +5,16 @@ use autobox; our $VERSION = '0.01'; -with 'Moose::Autobox::Indexed'; +with 'Moose::Autobox::Value'; requires qw/ - head + head tail length join - grep map sort + grep + map + sort reverse /; @@ -31,8 +33,44 @@ sub zip { : $array) ->keys ->map(sub { - [ $array->[$_], $other->[$_] ] + [ $array->at($_), $other->at($_) ] }); } -1; \ No newline at end of file +1; + +__END__ + +=pod + +=head1 NAME + +Moose::Autobox::List - the List role + +=head1 SYNOPOSIS + + use Moose::Autobox; + use autobox; + +=head1 DESCRIPTION + +=head1 BUGS + +All complex software has bugs lurking in it, and this module is no +exception. If you find a bug please either email me, or add the bug +to cpan-RT. + +=head1 AUTHOR + +Stevan Little Estevan@iinteractive.comE + +=head1 COPYRIGHT AND LICENSE + +Copyright 2006 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut \ No newline at end of file