projects
/
gitmo/Moose-Autobox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
implement flatten
[gitmo/Moose-Autobox.git]
/
lib
/
Moose
/
Autobox
/
Array.pm
diff --git
a/lib/Moose/Autobox/Array.pm
b/lib/Moose/Autobox/Array.pm
index
6c299a3
..
4fabd46
100644
(file)
--- a/
lib/Moose/Autobox/Array.pm
+++ b/
lib/Moose/Autobox/Array.pm
@@
-117,6
+117,10
@@
sub kv {
$array->keys->map(sub { [ $_, $array->[$_] ] });
}
+sub flatten {
+ @{$_[0]}
+}
+
## Junctions
sub all {
@@
-190,6
+194,8
@@
This is a role to describe operations on the Array type.
=item B<slice (@indices)>
+=item B<flatten>
+
=back
=head2 Indexed implementation