NAME
Hydrogen::Curry::ArrayRef - easily curry functions from Hydrogen::ArrayRef
VERSION
This documentation is for Hydrogen::Curry::ArrayRef 0.020000, which is based on Sub::HandlesVia::HandlerLibrary::Array 0.046.
FUNCTIONS
Each function expects a reference to an array as its only argument and returns a coderef.
curry_accessor( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::accessor
.
curry_all( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::all
.
curry_all_true( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::all_true
.
curry_any( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::any
.
curry_apply( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::apply
.
curry_clear( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::clear
.
curry_count( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::count
.
curry_delete( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::delete
.
curry_elements( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::elements
.
curry_first( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::first
.
curry_first_index( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::first_index
.
curry_flatten( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::flatten
.
curry_flatten_deep( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::flatten_deep
.
curry_for_each( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::for_each
.
curry_for_each_pair( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::for_each_pair
.
curry_get( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::get
.
curry_grep( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::grep
.
curry_head( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::head
.
curry_insert( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::insert
.
curry_is_empty( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::is_empty
.
curry_join( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::join
.
curry_map( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::map
.
curry_max( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::max
.
curry_maxstr( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::maxstr
.
curry_min( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::min
.
curry_minstr( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::minstr
.
curry_natatime( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::natatime
.
curry_not_all_true( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::not_all_true
.
curry_pairfirst( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairfirst
.
curry_pairgrep( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairgrep
.
curry_pairkeys( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairkeys
.
curry_pairmap( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairmap
.
curry_pairs( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairs
.
curry_pairvalues( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pairvalues
.
curry_pick_random( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pick_random
.
curry_pop( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::pop
.
curry_print( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::print
.
curry_product( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::product
.
curry_push( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::push
.
curry_reduce( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::reduce
.
curry_reductions( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::reductions
.
curry_reset( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::reset
.
curry_reverse( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::reverse
.
curry_sample( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::sample
.
curry_set( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::set
.
curry_shallow_clone( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::shallow_clone
.
curry_shift( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::shift
.
curry_shuffle( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::shuffle
.
curry_shuffle_in_place( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::shuffle_in_place
.
curry_sort( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::sort
.
curry_sort_in_place( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::sort_in_place
.
curry_splice( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::splice
.
curry_sum( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::sum
.
curry_tail( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::tail
.
curry_uniq( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniq
.
curry_uniq_in_place( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniq_in_place
.
curry_uniqnum( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniqnum
.
curry_uniqnum_in_place( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniqnum_in_place
.
curry_uniqstr( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniqstr
.
curry_uniqstr_in_place( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::uniqstr_in_place
.
curry_unshift( $arrayref )
Curry the first argument of Hydrogen::ArrayRef::unshift
.
EXPORT
No functions are exported by this module by default. To import them all (this is usually a bad idea), use:
use Hydrogen::Curry::ArrayRef -all;
To import a particular function, use:
use Hydrogen::Curry::ArrayRef 'curry_all_true';
To rename functions:
use Hydrogen::Curry::ArrayRef 'curry_all_true' => { -as => 'myfunc' };
On Perl 5.37.2+ (or if Lexical::Sub is installed) you can import lexically:
use Hydrogen::Curry::ArrayRef -lexical, 'curry_all_true';
See Exporter::Tiny::Manual::Importing for more hints on importing.
BUGS
Please report any bugs to http://github.com/tobyink/p5-hydrogen/issues.
SEE ALSO
Hydrogen, Hydrogen::ArrayRef, Hydrogen::Array, Hydrogen::Topic::ArrayRef, Sub::HandlesVia::HandlerLibrary::Array, List::Util, List::MoreUtils.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2022-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.