foo
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / List.pm
index 4431dc1..2c45a4f 100644 (file)
@@ -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 E<lt>stevan@iinteractive.comE<gt>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2006 by Infinity Interactive, Inc.
+
+L<http://www.iinteractive.com>
+
+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