Raku / book

Using Raku – an unfinished book about Raku
https://perl6book.com/
284 stars 49 forks source link

chapter 3, ".sort:", new syntax out of nowhere #64

Open timo opened 12 years ago

timo commented 12 years ago

The example for a custom comparison function uses an apparently new kind of syntax (appending a colon after a method and adding a block there), but there is no explanation why and how exactly it works.