Skip to content
This repository was archived by the owner on Feb 11, 2018. It is now read-only.

Add rna transcription exercise #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mbertheau
Copy link
Owner

No description provided.

@lexi-lambda
Copy link

Use in-string to iterate through the string. Also, use case instead of cond for comparing against datums.

(define (to-rna sequence)
  (list->string
   (for/list ([c (in-string sequence)])
     (case c
       [(#\G) #\C]
       [(#\C) #\G]
       [(#\T) #\A]
       [(#\A) #\U]))))

(Also, I fixed the indentation a little.)

@mbertheau mbertheau force-pushed the rna-transcription branch 2 times, most recently from c9ff0d5 to e13b212 Compare May 14, 2015 20:18
@mbertheau
Copy link
Owner Author

All done :)

@mbertheau mbertheau force-pushed the rna-transcription branch 3 times, most recently from 8f85465 to c190ef5 Compare May 22, 2015 21:22
@mbertheau mbertheau force-pushed the rna-transcription branch from c190ef5 to d4369c7 Compare May 22, 2015 21:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants