On 7/6/21 1:23 PM, Bruce Gray wrote:
On Jul 6, 2021, at 3:10 PM, Tom Browder <tom.brow...@gmail.com> wrote:
On Tue, Jul 6, 2021 at 14:53 ToddAndMargo via perl6-users
<perl6-us...@perl.org> wrote:
...
writing out 2000 skips is not practical.
Todd, why don't you tell us what you're really trying to do, i.e., what is your
use case? Maybe the experts can suggest a better class design.
-Tom
I also would prefer seeing a use case.
In the meantime:
my @will_become_I_soon;
@will_become_I_soon[400] = "four hundred";
@will_become_I_soon[2000] = "two thousand";
my $CC = AA.new( I => @will_become_I_soon );
Hmmm. 1002 ways!
or
my $CC = AA.new( I => [ flat( Str xx 400, "four hundred", Str xx 2000-400-1,
"two thousand" ) ] );
Sweet! Thank you!
No use case. I am just in learning mode on
the different ways to pre-salt an object on
creation.