implement flatten
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Hash.pm
index 62b8946..de8f2bb 100644 (file)
@@ -23,6 +23,10 @@ sub hslice {
     return { map { $_ => $hash->{$_} } @$keys };
 }
 
+sub flatten {
+    return %{$_[0]}
+}
+
 # ::Indexed implementation
 
 sub at {
@@ -98,6 +102,8 @@ shallow merging.
 
 Slices a hash but returns the keys and values as a new hashref.
 
+=item B<flatten>
+
 =back
 
 =head2 Indexed implementation