1
0
Fork 0
factor-puzzles/rosalind/prot/prot.factor

14 lines
382 B
Factor
Raw Normal View History

2020-11-29 08:22:10 +01:00
! Copyright (C) 2020 Bubbler.
! See http://factorcode.org/license.txt for BSD license.
USING: grouping io io.encodings.utf8 io.files kernel math
sequences splitting rosalind.common ;
IN: rosalind.prot
: prot ( rna -- protein )
3 group [ rna3>amino ] "" map-as
"." split first ;
: prot-main ( -- ) "datasets/rosalind/prot.txt" utf8 file-contents
prot print ;
MAIN: prot-main