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

11 lines
348 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: assocs io io.encodings.utf8 io.files sequences ;
IN: rosalind.revc
: revc ( dna-str -- reverse-complement )
[ H{ "AT" "CG" "GC" "TA" } at ] map reverse ;
: revc-main ( -- ) "datasets/rosalind/revc.txt" utf8 file-contents revc print ;
MAIN: revc-main