Documentation for method from-list assembled from the following pages:

Class: Supply §

From Supply

(Supply) method from-list §

method from-list(Supply:U: +@values --> Supply:D)

Creates an on-demand supply from the values passed to this method.

my $s = Supply.from-list(1, 2, 3);
$s.tap(&say); # OUTPUT: «1␤2␤3␤»