Kent Fredric │‫3﹪🔋

NAME

Set::Associate::NewKey::PickOffset - Associate a key with a value from a pool based on the keys value as a numeric offset.

VERSION

version 0.004000

METHODS

name

The name of this key assignment method ( pick_offset )

get_assoc

Returns a value non-destructively by picking an item at numerical offset $new_key

   my $value = $object->get_assoc( $set_assoc, $new_key );

Note: $new_key is automatically modulo of the length of $set_assoc, so offsets beyond end of array are safe, and wrap.

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.