# Pastebin tMaMzKm9 The iterator of this Seq is already in use/consumed by another Seq (you might solve this by adding .cache on usages of the Seq, or by assigning the Seq into an array) sub get-assets is export { my %assets = defaults => (map { .Str }, dir("pandoc-templates/defaults/", test => /:i '.' ya?ml $/)), filters => (map { .Str }, dir("pandoc-templates/pandoc-filters/", test => /:i '.py' $/)), pandoc-version => run(, :out).out.get.tc, warp-version => from-json(slurp("./META6.json")); %assets = %assets.head(2); %assets = %assets.tail(*-2); return %assets; }