Advertisement
Guest User

Untitled

a guest
Oct 16th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.24 KB | None | 0 0
  1. sub f1(Str $s where/^[A|C|G|T]+$/){[~]([~](<+ +-+>Zx(5,2)).comb(/....|..|./)[map(("y"~|*).ord()+>1%4,$s.comb)])}
  2. sub f2(Str $s where/^[A|C|G|T]+$/){[~](%(((^4==>map({(.succ**2/4).floor**2}))Z+65..*)Z=><-+- + -+-+ -++>){$s.comb.map(*.ord)})}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement