2 package Moose::Autobox::List;
3 use Moose::Role 'with', 'requires';
8 with 'Moose::Autobox::Value';
20 my ($array, $func) = @_;
21 my $a = $array->values;
23 $a->tail->map(sub { $acc = $func->($acc, $_) });
28 my ($array, $other) = @_;
29 ($array->length < $other->length
34 [ $array->at($_), $other->at($_) ]
46 Moose::Autobox::List - the List role
50 This is a role to describes a List interface. This is not
51 meant to be any specific Perl type, but instead an interface
52 that certain Perl types might implement. Currenly only
53 L<Moose::Autobox::Array> implements this.
71 =head1 REQUIRED METHODS
95 All complex software has bugs lurking in it, and this module is no
96 exception. If you find a bug please either email me, or add the bug
101 Stevan Little E<lt>stevan@iinteractive.comE<gt>
103 =head1 COPYRIGHT AND LICENSE
105 Copyright 2006 by Infinity Interactive, Inc.
107 L<http://www.iinteractive.com>
109 This library is free software; you can redistribute it and/or modify
110 it under the same terms as Perl itself.