FP::Array - pure functions to work with native Perl arrays
use FP::List; use FP::Equal 'is_equal'; use FP::Div 'inc'; use FP::Array ':all'; is_equal array_map(*inc, [3, 4, 6]), [4, 5, 7]; is_equal list([], [3,4], [9])->map(*array_length), list(0, 2, 1);
To disambiguate from similarly named functions for `FP::List`, they are prefixed with `array_`.
These are also used as methods for `FP::PureArray` objects.
FP::Array_sort, FP::PureArray
This is alpha software! Read the status section in the package README or on the website.
To install FunctionalPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FunctionalPerl
CPAN shell
perl -MCPAN -e shell install FunctionalPerl
For more information on module installation, please visit the detailed CPAN module installation guide.