What is an elegant and efficient way to return a list without the nth element? I'm now using something like:
my @b = @a;
@b.splice($n,1);
return @b;
but that's not very elegant, and probably not efficient either.
(Something like return @b.spliced($n,1)
would be nicer, but that doesn't work.)
return flat @a[0..^$n,$n^..*]
isn't much better.