$array->keys->map(sub { [ $_, $array->[$_] ] });
}
+sub flatten {
+ @{$_[0]}
+}
+
## Junctions
sub all {
return Perl6::Junction::One->one(@$array);
}
+## Print
+
+sub print { CORE::print @{$_[0]} }
+sub say { CORE::print @{$_[0]}, "\n" }
+
1;
__END__
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
[ 1..5 ]->isa('ARRAY'); # true
[ a..z ]->does('Moose::Autobox::Array'); # true
=item B<slice (@indices)>
+=item B<flatten>
+
=back
=head2 Indexed implementation
=item B<meta>
+=item B<print>
+
+=item B<say>
+
=back
=head1 BUGS
=head1 COPYRIGHT AND LICENSE
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>