home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / lisp / 3139 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!stanford.edu!lucid.com!karoshi!york
  3. From: york@oakland-hills.lucid.com (Bill York)
  4. Subject: Re: Use of format or pprint
  5. In-Reply-To: kramer@cme.nist.gov's message of 24 Dec 92 17:13:19 GMT
  6. Message-ID: <YORK.92Dec24124001@oakland-hills.lucid.com>
  7. Sender: usenet@lucid.com
  8. Reply-To: York@Lucid.COM
  9. Organization: Lucid, Inc.
  10. References: <1992Dec17.173558.18552@grace.boeing.com> <20483@cosmos.cme.nist.gov>
  11. Distribution: usa
  12. Date: 24 Dec 92 12:40:01
  13. Lines: 19
  14.  
  15. In article <20483@cosmos.cme.nist.gov> kramer@cme.nist.gov (Tom Kramer) writes:
  16.  
  17.    In article <1992Dec17.173558.18552@grace.boeing.com> ski@atc.boeing.com writes:
  18.  
  19.    >What format string
  20.    >(format "???" a b)
  21.    >will print them in this format
  22.    >
  23.    >org:    chris dan ski elaine nick tony charlie
  24.    >    jeff jeffw bruce mike kim kelly
  25.  
  26.    Using (setq b '("chris" "dan" "ski" ...)) the following works
  27.  
  28.    (format t "~A:~{~8T~A~^ ~A~^ ~A~^ ~A~^ ~A~^ ~A~^ ~A~^~%~}" a b)
  29.    I wasted an hour on that, but I learned something. Merry Christmas!
  30.  
  31. To paraphrase the old TECO joke:
  32.  
  33. "FORMAT.  A moment of convenience.  A lifetime of regret."
  34.