The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@kylheku.com>
Date: Mon, 17 Sep 2012 18:27:17 +0000 (UTC)
Local: Mon, Sep 17 2012 2:27 pm
Subject: Re: new to lisp, need help.
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.
| ||||||||||||||