Re: Map on a multislice
Joe Gottman schreef: > When you call map on a multislice, does it do deep or shallow > iteration? And with deep, there is the choice: depth first or not. -- Affijn, Ruud "Gewoon is een tijger."
Map on a multislice
When you call map on a multislice, does it do deep or shallow iteration? I can see uses for both of these: my @multislice = ([1,2], [3,4, 5]); my @dims = map :shallow [EMAIL PROTECTED] @multislice; # Want (2, 3) my @changed_slice = map :deep {2 * $_ + 1} @multislice; # Want ([3, 5], [7, 9