Array::Frugal - Arrays that re-use deleted indices


Array-Frugal documentation  | view source Contained in the Array-Frugal distribution.

Index


NAME

Top

Array::Frugal - Arrays that re-use deleted indices

SYNOPSIS

Top

  use Array::Frugal;
  my $stash = new Array::Frugal;
  $index = $stash->PUSH(34);
  print $stash->FETCH($index);  # prints 34;
  $stash->DELETE($index); # $index can be re-used now




DESCRIPTION

Top

Frugal as in memory use. Instead of continuing to count upwards toward MAXINT, when an element is deleted from a frugal array the index is available for re-use.

Currently new, PUSH, FETCH, STORE, and DELETE are all the methods that are defined, but this may become tieable in a future release.

HISTORY

Top

0.01

Original version;

SEE ALSO

Top

AUTHOR

Top

david l nicol, <davidnico@cpan.org>

COPYRIGHT AND LICENSE

Top


Array-Frugal documentation  | view source Contained in the Array-Frugal distribution.