Created
July 28, 2016 11:07
-
-
Save gfldex/491d637082df050f825f8a7adcd2746c to your computer and use it in GitHub Desktop.
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
multi cross(&f, @ ($x, *@xs), @ys) { flat map({&f($x, $_)}, @ys), cross(&f, @xs, @ys); } | |
multi cross(&f, @ (), @ys) { (); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment