Skip to content

Instantly share code, notes, and snippets.

@JJ
Created November 30, 2022 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JJ/85c2fe185f978f1972ee9ae8e020575d to your computer and use it in GitHub Desktop.
Save JJ/85c2fe185f978f1972ee9ae8e020575d to your computer and use it in GitHub Desktop.
hyperized CSV reading
sub MAIN(Str $input) {
my @r = lazy read-csv $input;
server-login;
react {
whenever supply {
.emit for @r.hyper(:8degree, :16batch)
.map(&csv-to-yaml)
} {
server-post $_
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment