WordListRole::BinarySearch - Provide word_exists() that uses binary search
This document describes version 0.006 of WordListRole::BinarySearch (from Perl distribution WordListRole-BinarySearch), released on 2021-04-25.
use Role::Tiny; use WordList::EN::Enable; my $wl = WordList::EN::Enable->new; Role::Tiny->apply_roles_to_object($wl, "WordListRole::BinarySearch");
This role provides an alternative word_exists() method that performs binary searching instead of the default linear. The list must be sorted numerically ($SORT is num or numeric) or alphabetically ($SORT is empty).
word_exists()
$SORT
num
numeric
Please visit the project's homepage at https://metacpan.org/release/WordListRole-BinarySearch.
Source repository is at https://github.com/perlancar/perl-WordListRole-BinarySearch.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=WordListRole-BinarySearch
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.
File::SortedSeek
perlancar <perlancar@cpan.org>
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.
To install WordListRole::BinarySearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WordListRole::BinarySearch
CPAN shell
perl -MCPAN -e shell install WordListRole::BinarySearch
For more information on module installation, please visit the detailed CPAN module installation guide.