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

14 lines
359 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: io io.encodings.utf8 io.files kernel sequences ;
IN: rosalind.rna
CONSTANT: T CHAR: T
CONSTANT: U CHAR: U
: rna ( dna-str -- rna-str ) [ dup T = [ drop U ] when ] map ;
: rna-main ( -- ) "datasets/rosalind/rna.txt" utf8 file-contents rna print ;
MAIN: rna-main