Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add use v6 pragma to rosalind examples
  • Loading branch information
Paul Cochrane committed Feb 28, 2015
1 parent 1edd74c commit 1f15ddd
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rosalind/cstr-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

my @dna = map { [.comb] }, lines;

my @c = @dna[0][];
Expand Down
2 changes: 2 additions & 0 deletions rosalind/dna-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

say get.comb.bag<A C G T>;

# vim: expandtab shiftwidth=4 ft=perl6
2 changes: 2 additions & 0 deletions rosalind/eubt-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

proto combine (Int, @) {*}
multi combine (0, @) { [] }
multi combine ($, []) { () }
Expand Down
1 change: 1 addition & 0 deletions rosalind/fib-grondilu.pl
@@ -1,3 +1,4 @@
use v6;

my ($n, $k) = get.words;
my @fib := 1, 1, * * $k + * ... *;
Expand Down
2 changes: 2 additions & 0 deletions rosalind/fibd-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

my ($n, $m) = get.words;

my @population = 1, 0 xx ($m-1);
Expand Down
2 changes: 2 additions & 0 deletions rosalind/lcsq-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

use NativeCall;
sub lcsq(Str $, Str $ --> Str) is native('./lcsq') {*}

Expand Down
2 changes: 2 additions & 0 deletions rosalind/pmch-grondilu.pl
@@ -1,3 +1,5 @@
use v6;

my $rna = join '', grep /^ <[ACGU]>+ $/, lines;

say [*] map { [*] 1 .. $rna.comb(/$_/).elems }, <U C>;
Expand Down

0 comments on commit 1f15ddd

Please sign in to comment.