use Carp qw(croak);
-our $VERSION = '0.02';
+our $VERSION = '0.03';
with 'Moose::Autobox::Ref',
'Moose::Autobox::Indexed';
[ CORE::map { [ $_, $hash->{$_} ] } CORE::keys %$hash ];
}
+sub slice {
+ my ($hash, $keys) = @_;
+ return [ @{$hash}{@$keys} ];
+};
+
sub print { CORE::print %{$_[0]} }
sub say { CORE::print %{$_[0]}, "\n" }
=item B<kv>
+=item B<slice>
+
=back
=over 4