> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/m/multiple_distinct_objects.md).

# Multiple distinct objects

Unlike in Perl 5, the list repetition operator evaluates the left argument thunk each time, so

```perl
my @a = Foo.new xx $n;
```

produces `$n` distinct objects.
