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
57 This is a role to describes a List interface. This is not
58 meant to be any specific Perl type, but instead an interface
59 that certain Perl types might implement. Currenly only
60 L<Moose::Autobox::Array> implements this.
74 =head1 REQUIRED METHODS
98 All complex software has bugs lurking in it, and this module is no
99 exception. If you find a bug please either email me, or add the bug
104 Stevan Little E<lt>stevan@iinteractive.comE<gt>
106 =head1 COPYRIGHT AND LICENSE
108 Copyright 2006 by Infinity Interactive, Inc.
110 L<http://www.iinteractive.com>
112 This library is free software; you can redistribute it and/or modify
113 it under the same terms as Perl itself.