jgraeve has asked for the wisdom of the Perl Monks concerning the following question:
In @c I want all values of @a with all possible combinations of @b@a = (1, 2, 3) @b = ("a", "b");
@c = ( [ [1,"a"], [2,"a"], [3,"a"] ] , [ [1,"a"], [2,"a"], [3,"b"] ] , [ [1,"a"], [2,"b"], [3,"a"] ] , [ [1,"b"], [2,"a"], [3,"a"] ] , [ [1,"b"], [2,"b"], [3,"a"] ] , [ [1,"b"], [2,"b"], [3,"b"] ] )
What would we be the best way to accomplish this?
Thanks for helping out.
Johan
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: combinations of multiple variables which can assume multiple values
by choroba (Cardinal) on Mar 16, 2018 at 16:21 UTC | |
by jgraeve (Novice) on Mar 16, 2018 at 16:47 UTC | |
Re: combinations of multiple variables which can assume multiple values
by Cristoforo (Curate) on Mar 16, 2018 at 19:01 UTC | |
by vr (Curate) on Mar 17, 2018 at 13:42 UTC | |
by Cristoforo (Curate) on Apr 24, 2018 at 19:38 UTC | |
Re: combinations of multiple variables which can assume multiple values
by tybalt89 (Monsignor) on Mar 16, 2018 at 16:42 UTC | |
Re: combinations of multiple variables which can assume multiple values
by LanX (Saint) on Mar 16, 2018 at 19:01 UTC |