| 1 | |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Zest::Author::TABULO::Util::List; | ||||||||||
| 6 | 2 | our $VERSION = '1.000014'; | |||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use List::Util qw(uniq); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use Exporter::Shiny qw( | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | flat | ||||||||||
| 11 | sort_flat | ||||||||||
| 12 | uniq_flat | ||||||||||
| 13 | uniq_sort_flat | ||||||||||
| 14 | 2 | ); | |||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | #region: #== UTILITY FUNCTIONS (EXPORT_OK) == | ||||||||||
| 18 | |||||||||||
| 19 | 3 | ▶ | sub uniq_sort_flat { uniq(sort (flat(@_))) } | ||||||||
|
Subroutine
uniq_sort_flat: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 20 | 0 | ▶ | sub sort_flat { sort (flat(@_)) } | ||||||||
|
Subroutine
sort_flat: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 21 | 0 | ▶ | sub uniq_flat { uniq(flat(@_)) } | ||||||||
|
Subroutine
uniq_flat: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 22 | 7 | ▶ | sub flat { # flatten our arguments (shallowly; 1-level deep) | ||||||||
|
Subroutine
flat: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 23 | map { | ||||||||||
| 24 | 7 | ▶ | ref $_ eq 'ARRAY' ? (@$_) : $_ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | } (@_); | ||||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | #endregion (UTILITY FUNCTIONS) | ||||||||||
| 29 | |||||||||||
| 30 | 2 | 1; | |||||||||
| 31 | |||||||||||
| 32 | =pod | ||||||||||
| 33 | |||||||||||
| 34 | =encoding UTF-8 | ||||||||||
| 35 | |||||||||||
| 36 | =for :stopwords Tabulo[n] | ||||||||||
| 37 | |||||||||||
| 38 | =head1 NAME | ||||||||||
| 39 | |||||||||||
| 40 | Zest::Author::TABULO::Util::List - Utility functions used by TABULO's authoring dist | ||||||||||
| 41 | |||||||||||
| 42 | =head1 VERSION | ||||||||||
| 43 | |||||||||||
| 44 | version 1.000014 | ||||||||||
| 45 | |||||||||||
| 46 | =for Pod::Coverage flat sort_flat uniq_flat uniq_sort_flat | ||||||||||
| 47 | |||||||||||
| 48 | =head1 AUTHORS | ||||||||||
| 49 | |||||||||||
| 50 | Tabulo[n] <dev@tabulo.net> | ||||||||||
| 51 | |||||||||||
| 52 | =head1 LEGAL | ||||||||||
| 53 | |||||||||||
| 54 | This software is copyright (c) 2023 by Tabulo[n]. | ||||||||||
| 55 | |||||||||||
| 56 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 57 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 58 | |||||||||||
| 59 | =cut | ||||||||||
| 60 | |||||||||||
| 61 | __END__ | ||||||||||