On 2012-09-17, mchukh...@gmail.com <mchukh...@gmail.com> wrote:
> Assumptions:(defun break-comp (list)
> You can assume the following:
> 1. AND is the only word that can create compound sentences.
> 2. Any time that AND is used it is a compound sentence.
> 3. A compound sentence can only have 1 AND in it.
> Sample Output:
(let* ((and-clause (member 'and list))
(main-clause (ldiff list and-clause)))
`(,main-clause ,@(if and-clause `(,(cdr and-clause))))))
Uncool version, without backquote notation:
(defun break-comp (list)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.