implement flatten
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Array.pm
index 6c299a3..4fabd46 100644 (file)
@@ -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