2 package Moose::Autobox::List;
3 use Moose::Role 'with', 'requires';
8 with 'Moose::Autobox::Value';
22 my ($array, $func) = @_;
23 my $a = $array->values;
25 $a->tail->map(sub { $acc = $func->($acc, $_) });
30 my ($array, $other) = @_;
31 ($array->length < $other->length
36 [ $array->at($_), $other->at($_) ]
48 Moose::Autobox::List - the List role
69 =head1 REQUIRED METHODS
93 All complex software has bugs lurking in it, and this module is no
94 exception. If you find a bug please either email me, or add the bug
99 Stevan Little E<lt>stevan@iinteractive.comE<gt>
101 =head1 COPYRIGHT AND LICENSE
103 Copyright 2006 by Infinity Interactive, Inc.
105 L<http://www.iinteractive.com>
107 This library is free software; you can redistribute it and/or modify
108 it under the same terms as Perl itself.