Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Import initial scripts

  • Loading branch information...
commit 9b31aace17ae54f585aaf01b3e0b27c5f5db9b15 0 parents
@nunorc nunorc authored
1  do_nothing.p6
@@ -0,0 +1 @@
+
3  hello.p6
@@ -0,0 +1,3 @@
+use v6;
+
+say "hello world";
5 iteration.p6
@@ -0,0 +1,5 @@
+use v6;
+
+my $i = 0;
+while $i < 5 { $i++; };
+
2  pascals_triangle.p6
@@ -0,0 +1,2 @@
+sub pascal { [1], -> @p { [0, @p Z+ @p, 0] } ... * };
+say pascal[^10].perl
4 recursion.p6
@@ -0,0 +1,4 @@
+use v6;
+
+sub recur($n) { say $n; recur($n-1) if $n>0; }
+recur(12);
Please sign in to comment.
Something went wrong with that request. Please try again.