> 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/c/compare_a_list_of_strings.md).

# Compare a list of strings

In Raku, putting square brackets around an [infix](https://en.wikipedia.org/wiki/Infix_notation) operator turns it into a listop that effectively works as if the operator had been but in between all of the elements of the argument list *(or in technical terms, it* [*folds/reduces*](https://en.wikipedia.org/wiki/Fold_\(higher-order_function\)) *the list using that operator, while taking into account the operator's inherent* [*associativity*](https://design.raku.org/S03.html#Operator_precedence) *and identity value)*:

```perl
[eq] @strings  # All equal
[lt] @strings  # Strictly ascending
```
