Util-Medley

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "List::Util" : "0",
            "Modern::Perl" : "0",
            "Module::Load" : "0",
            "Module::Overview" : "0",
            "Moose" : "0",
            "Moose::Role" : "0",
            "Number::Format" : "0",
            "Path::Iterator::Rule" : "0",
            "Scalar::Util" : "0",
            "Scalar::Util::Numeric" : "0",
            "Sort::Naturally" : "0",
            "String::Util" : "0",
            "Text::ASCIITable" : "0",
            "Text::Table" : "0",
            "Time::HiRes" : "0",
            "Time::Local" : "0",
            "Time::ParseDate" : "0",
            "Time::localtime" : "0",
            "Try::Tiny" : "0",
            "YAML" : "0",
            "constant" : "0",

META.yml  view on Meta::CPAN

  List::Util: '0'
  Modern::Perl: '0'
  Module::Load: '0'
  Module::Overview: '0'
  Moose: '0'
  Moose::Role: '0'
  Number::Format: '0'
  Path::Iterator::Rule: '0'
  Scalar::Util: '0'
  Scalar::Util::Numeric: '0'
  Sort::Naturally: '0'
  String::Util: '0'
  Text::ASCIITable: '0'
  Text::Table: '0'
  Time::HiRes: '0'
  Time::Local: '0'
  Time::ParseDate: '0'
  Time::localtime: '0'
  Try::Tiny: '0'
  YAML: '0'
  constant: '0'

Makefile.PL  view on Meta::CPAN

    "List::Util" => 0,
    "Modern::Perl" => 0,
    "Module::Load" => 0,
    "Module::Overview" => 0,
    "Moose" => 0,
    "Moose::Role" => 0,
    "Number::Format" => 0,
    "Path::Iterator::Rule" => 0,
    "Scalar::Util" => 0,
    "Scalar::Util::Numeric" => 0,
    "Sort::Naturally" => 0,
    "String::Util" => 0,
    "Text::ASCIITable" => 0,
    "Text::Table" => 0,
    "Time::HiRes" => 0,
    "Time::Local" => 0,
    "Time::ParseDate" => 0,
    "Time::localtime" => 0,
    "Try::Tiny" => 0,
    "YAML" => 0,
    "constant" => 0,

Makefile.PL  view on Meta::CPAN

  "List::Util" => 0,
  "Modern::Perl" => 0,
  "Module::Load" => 0,
  "Module::Overview" => 0,
  "Moose" => 0,
  "Moose::Role" => 0,
  "Number::Format" => 0,
  "Path::Iterator::Rule" => 0,
  "Scalar::Util" => 0,
  "Scalar::Util::Numeric" => 0,
  "Sort::Naturally" => 0,
  "String::Util" => 0,
  "Test::More" => 0,
  "Text::ASCIITable" => 0,
  "Text::Table" => 0,
  "Time::HiRes" => 0,
  "Time::Local" => 0,
  "Time::ParseDate" => 0,
  "Time::localtime" => 0,
  "Try::Tiny" => 0,
  "YAML" => 0,

lib/Util/Medley/List.pm  view on Meta::CPAN

#########################################################################################

use v5.16;
use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use List::Util;
use List::Compare;
use Sort::Naturally;

=head1 NAME

Util::Medley::List - utility methods for working with lists

=head1 VERSION

version 0.062

=cut

lib/Util/Medley/List.pm  view on Meta::CPAN


multi method max (ArrayRef :$list!) {

	return $self->max(@$list);	
}


=head1 nsort 

Sort an array naturally (case in-sensitive).  This behaves the same way
Sort::Naturally::nsort does with the exception of using fc (casefolding) 
instead of lc (lowercase).  This guarantees the same results without
regard to locale (which Sort::Naturally::nsort does use).

=over

=item usage:

 @sorted = $util->nsort(@list);
 
 @sorted = $util->nsort(list => \@list);

=item args:



( run in 1.472 second using v1.01-cache-2.11-cpan-56fb94df46f )