src/problems/revc.lisp @ 11df545d1a41

Remove comments, do CONS
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Nov 2018 14:41:39 -0400
parents 6088027147e1
children e279056b1a5b
(in-package :rosalind)

(define-problem revc (data string)
    "AAAACCCGGT"
    "ACCGGGTTTT"
  (flet ((dna-complement (base)
           (case base
             (#\A #\T)
             (#\T #\A)
             (#\G #\C)
             (#\C #\G)
             (t base)))) ; newline etc
    (map-into data #'dna-complement data)
    (nreverse data)))