From d768fd5dff3cf81924cab3968013a210cd5f609d Mon Sep 17 00:00:00 2001 From: KUEPPO Date: Sun, 16 Oct 2022 22:20:01 +0100 Subject: pwc-186, ch-1 in Raku --- challenge-186/kueppo-wesley/Raku/ch-1.raku | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 challenge-186/kueppo-wesley/Raku/ch-1.raku diff --git a/challenge-186/kueppo-wesley/Raku/ch-1.raku b/challenge-186/kueppo-wesley/Raku/ch-1.raku new file mode 100644 index 0000000000..20013e2a28 --- /dev/null +++ b/challenge-186/kueppo-wesley/Raku/ch-1.raku @@ -0,0 +1,10 @@ +#!/usr/bin/env raku + +sub myzip(@a, @b) { + my @result; + for zip(@a, @b) -> [$x, $y] { @result.push($x, $y) } + return @result; +} + +myzip(, <1 2 3>).say; +myzip(<1 2 3>, ).say; -- cgit