Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
School Help
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Doug Edwards  
View profile  
 More options Jul 9 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: dou...@sagelink.net (Doug Edwards)
Date: 1996/07/09
Subject: School Help

I'm working on a school project that includes LISP code examples.  I've
found many examples in library books, but still need something.

Could someone send me a source code listing of a simple lisp database
program that I could adapt.  The record structures would be similar to
an address book.  I must have Name, address, age (integer) and ten
float numbers (for grades).  I must enable the user to save to file,
retrieve and update the records.  I must also sort them.  

Any help would be appreciated.

Thank you,

Doug Edwards


 
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.
Discussion subject changed to "List --> String????" by Bruce Voss
Bruce Voss  
View profile  
 More options Jul 10 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: Bruce Voss <bruce...@nortel.ca>
Date: 1996/07/10
Subject: List --> String????

I am trying to convert a complex list (list of lists) into a string. The list looks something like this:

                ((2 3) (3 4) (4 5))

I want it to look like this:

                "((2 3) (3 4) (4 5))"

Does anyone know how this can be done with relative ease?

Any help would be appreciated.

Regards,

bv...@engsoc.carleton.ca

bruce...@nortel.ca

..all opinions are my own, etc. etc.


 
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.
Benjamin Shults  
View profile  
 More options Jul 10 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: Benjamin Shults <bshu...@math.utexas.edu>
Date: 1996/07/10
Subject: Re: List --> String????

Bruce Voss wrote:

> I am trying to convert a complex list (list of lists) into a string. The list looks something like this:

>                 ((2 3) (3 4) (4 5))

> I want it to look like this:

>                 "((2 3) (3 4) (4 5))"

> Does anyone know how this can be done with relative ease?

(format nil "~a" '((2 3) (3 4) (4 5)))
=>
"((2 3) (3 4) (4 5))"

(stringp (format nil "~a" '((2 3) (3 4) (4 5))))
=>
T

(format nil "~s" '((2 3) (3 4) (4 5)))
=>
"((2 3) (3 4) (4 5))"

(stringp (format nil "~s" '((2 3) (3 4) (4 5))))
=>
T

--
Benjamin Shults                 Email:  bshu...@math.utexas.edu
Department of Mathematics       Phone:  (512) 471-7711 ext. 208
University of Texas at Austin   WWW:    http://www.ma.utexas.edu/users/bshults
Austin, TX  78712   USA         FAX:    (512) 471-9038 (attn: Benjamin Shults)


 
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.
Erik Naggum  
View profile  
 More options Jul 11 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 1996/07/11
Subject: Re: List --> String????

[Bruce Voss]

|   I am trying to convert a complex list (list of lists) into a string.
|   The list looks something like this:
|      
|               ((2 3) (3 4) (4 5))
|  
|   I want it to look like this:
|              
|               "((2 3) (3 4) (4 5))"
|  
|   Does anyone know how this can be done with relative ease?

see the section of the Lisp printer in your Lisp reference.

#\Erik


 
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.
Ken Tilton  
View profile  
 More options Jul 16 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: Ken Tilton <t...@bway.net>
Date: 1996/07/16
Subject: Re: List --> String????

Hmmm. How about (format t "~s" (format nil "~s" '((2 3) (4 5))))?

Not sure what happens when you get away from simple atoms like 2 and 3.

Cheers,

Ken


 
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.
Brian M. Moore  
View profile  
 More options Jul 18 1996, 3:00 am
Newsgroups: comp.lang.lisp
From: moo...@ukans.edu (Brian M. Moore)
Date: 1996/07/18
Subject: Re: List --> String????

In article <31EBDB4E.4...@bway.net>, t...@qi-labs.com wrote:
> Bruce Voss wrote:

> > I am trying to convert a complex list (list of lists) into a string.

The list looks something like this:

> >                 ((2 3) (3 4) (4 5))

> > I want it to look like this:

> >                 "((2 3) (3 4) (4 5))"

> > Does anyone know how this can be done with relative ease?

> > Any help would be appreciated.

> > Regards,

> > bv...@engsoc.carleton.ca

(setq my-string (format nil "~A" '((2 3) (3 4) (4 5))))

 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »