NAME

ArrayData::Char::Latin1::Letter - Latin1 letters

VERSION

This document describes version 0.003 of ArrayData::Char::Latin1::Letter (from Perl distribution ArrayDataBundle-Char-Latin1), released on 2021-05-20.

SYNOPSIS

use ArrayData::Char::Latin1::Letter;

my $ary = ArrayData::Char::Latin1::Letter->new;

# Iterate the elements
$ary->reset_iterator;
while ($ary->has_next_item) {
    my $element = $ary->get_next_item;
    ... # do something with the element
}

# Another way to iterate
$ary->each_item(sub { my ($item, $obj, $pos) = @_; ... }); # return false in anonsub to exit early

# Get elements by position (array index)
my $element = $ary->get_item_at_pos(0);  # get the first element
my $element = $ary->get_item_at_pos(90); # get the 91th element, will die if there is no element at that position.

# Get number of elements in the list
my $count = $ary->get_item_count;

# Get all elements from the list
my @all_elements = $ary->get_all_items;

# Find an item.
my @found = $ary->find_item(item => 'foo');
my $has_item = $ary->has_item('foo'); # bool

# Pick one or several random elements.
my $element = $ary->pick_item;
my @elements = $ary->pick_items(n=>3);

DESCRIPTION

For testing only.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/ArrayDataBundle-Char-Latin1.

SOURCE

Source repository is at https://github.com/perlancar/perl-ArrayDataBundle-Char-Latin1.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-ArrayDataBundle-Char-Latin1/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by perlancar@cpan.org.

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