Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created June 18, 2020 22:20
Show Gist options
  • Save gfldex/6ec6c03d65dd9e298bacc9a0deabeace to your computer and use it in GitHub Desktop.
Save gfldex/6ec6c03d65dd9e298bacc9a0deabeace to your computer and use it in GitHub Desktop.
use v6;
my @list = 1..10;
my @results;
loop {
@results = @list[^24].hyper(:degree(2), :batch(1)).map({ my $type = run('/bin/ls', :out).out.slurp.chars; $_ but role Mime { has $.mime = $type } });
dd @results[0].mime;
last if now > 5 + BEGIN now;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment