NAME
TB2::StackBuilder - A stack builder
SYNOPSIS
# TODO
use TB2::StackBuilder;
buildstack items => 'Int';
# is the same as having said:
has items => (
is => 'rw',
isa => 'ArrayRef[Int]',
default => sub{[]},
);
sub items_push { ... }
sub items_pop { ... }
sub items_count{ ... }
DESCRIPTION
Exports a keyword buildstack to build up an Attribute array and methods consistanly.
EXPORTED FUNCTIONS
buildstack
buildstack $name; # stack is just an ArrayRef
buildstack $name => $subtype; # ArrayRef[$subtype]