The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mic::ArrayImpl

SYNOPSIS

    package Example::ArrayImps::HashSet;

    use Mic::ArrayImpl
        has => { SET => { default => sub { {} } } },
    ;

    sub has {
        my ($self, $e) = @_;

        exists $self->[SET]{$e};
    }

    sub add {
        my ($self, $e) = @_;

        ++$self->[SET]{$e};
    }

    1;

DESCRIPTION

Mic::ArrayImpl is an alias of Mic::Impl.