App-CrossPericmd
view release on metacpan or search on metacpan
Output the cross product of two or more sets.
Examples:
* Example #1:
cross( aoaos => ["1,2,3", "4,5"]); # -> [[1, 4], [1, 5], [2, 4], [2, 5], [3, 4], [3, 5]]
This is more or less the same as the cross CLI on CPAN (from
Set::CrossProduct) except that this CLI is written using the
Perinci::CmdLine framework. It returns table data which might be more
easily consumed by other tools.
This function is not exported.
Arguments ('*' denotes required arguments):
* aoaos* => *array[array[str]]*
Returns an enveloped result (an array).
lib/App/CrossPericmd.pm view on Meta::CPAN
our %SPEC;
$SPEC{cross} = {
v => 1.1,
summary => 'Output the cross product of two or more sets',
description => <<'_',
This is more or less the same as the <prog:cross> CLI on CPAN (from
<pm:Set::CrossProduct>) except that this CLI is written using the
<pm:Perinci::CmdLine> framework. It returns table data which might be more
easily consumed by other tools.
_
args => {
aoaos => {
'x.name.is_plural' => 1,
'x.name.singular' => 'aos',
schema => ['array*', {
min_len => 2,
of => ['array*', {
lib/App/CrossPericmd.pm view on Meta::CPAN
=over
=item * Example #1:
cross( aoaos => ["1,2,3", "4,5"]); # -> [[1, 4], [1, 5], [2, 4], [2, 5], [3, 4], [3, 5]]
=back
This is more or less the same as the L<cross> CLI on CPAN (from
L<Set::CrossProduct>) except that this CLI is written using the
L<Perinci::CmdLine> framework. It returns table data which might be more
easily consumed by other tools.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<aoaos>* => I<array[array[str]]>
script/cross-pericmd view on Meta::CPAN
[
"2",
"bar"
]
]
=head1 DESCRIPTION
This is more or less the same as the L<cross> CLI on CPAN (from
L<Set::CrossProduct>) except that this CLI is written using the
L<Perinci::CmdLine> framework. It returns table data which might be more
easily consumed by other tools.
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
( run in 2.550 seconds using v1.01-cache-2.11-cpan-e1769b4cff6 )