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
/
Hash.pm
diff --git
a/lib/Moose/Autobox/Hash.pm
b/lib/Moose/Autobox/Hash.pm
index
62b8946
..
de8f2bb
100644
(file)
--- a/
lib/Moose/Autobox/Hash.pm
+++ b/
lib/Moose/Autobox/Hash.pm
@@
-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