Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

IEV rosalind solution #9

Merged
merged 1 commit into from

1 participant

@grondilu
Collaborator

No description provided.

@grondilu grondilu merged commit 3a42b1e into perl6:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 4, 2012
  1. @grondilu

    IEV rosalind solution

    grondilu authored
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 0 deletions.
  1. +13 −0 rosalind/iev-grondilu.pl
View
13 rosalind/iev-grondilu.pl
@@ -0,0 +1,13 @@
+use v6;
+
+given $*IN.get.split: " " {
+ say 2 * [+]
+ .[0], # AA AA
+ .[1], # AA Aa
+ .[2], # AA aa
+ (3/4 * .[3]), # Aa Aa
+ (1/2 * .[4]), # Aa aa
+ 0, # aa aa
+ ;
+}
+# vim: ft=perl6
Something went wrong with that request. Please try again.