Created
November 30, 2022 17:06
-
-
Save JJ/85c2fe185f978f1972ee9ae8e020575d to your computer and use it in GitHub Desktop.
hyperized CSV reading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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