Red
Red copied to clipboard
ResultSeq should take snapshot of table name to build the results.
We need to take snapshot of table name within ResultSeq, so below example may work as expected.
sub get-seq ($table-source) { temp Model.^table = $table-source; Model.^all.grep({ ... }); }
my @rs-seq = get-seq("model_new_table");