src/problems/dna.lisp @ 11df545d1a41

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

(define-problem dna (data string)
    "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC"
    "20 12 17 21"
  (let ((results (frequencies data)))
    (format nil "~D ~D ~D ~D"
            (gethash #\A results 0)
            (gethash #\C results 0)
            (gethash #\G results 0)
            (gethash #\T results 0))))

;; (problem-dna "AT")