...which has the correct solution "that thing grows slowly" already in the first column.
Unless I'm mistaken, this relies on the intrinsic re-ordering which the hyper operator currently applies on Rakudo (but won't in the future once it has learned to actually auto-thread).
And indeed when you change the order of some words in the problem statement (e.g. "the" and "that"), it no longer finds the correct solution, so the code actually depends on this "cheating" and doesn't just benefit from it as a performance optimization.
I'd vote for:
- removing that solution from Rosettacode
- presenting the regex-based one as the "main" Perl 6 solution for the Amb task instead
- and below it, present the following non-cheating, non-confusing variation of the above as a "more idiomatic solution that solves the example use-case and also satisfies the non-determinism requirement, but does not actually use an Amb operator in the way the task intends":