Sunday, August 2, 2009

Write a function PREFIX in lISP that returns the leftmost N bases of a list ex. PREFIX 3 '(C G A T ) -> C G A

Use the SUBSEQ function.

Write a function PREFIX in lISP that returns the leftmost N bases of a list ex. PREFIX 3 '(C G A T ) -%26gt; C G A
convert the string into a character array, then get the first 3 elements in the array and return them as a string


No comments:

Post a Comment