home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0161.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  574 b   |  22 lines

  1.   Two new functions:
  2.  
  3.     (character-index 'st_string 'xst_char)
  4.  
  5.     returns the position of the character xst_char in the string
  6.     st_string.  The position of the first character is '1'
  7.     (1-based indexing was chosen because substring also uses
  8.      1-based indexing).
  9.     If the character is not in the string, nil is returned.
  10.  
  11.      xst_char, as its prefix implies, can either be the fixnum
  12.      value of a character (commonly written #/x), or a symbol
  13.      or string, in which case the first character is used.
  14.  
  15.  
  16.   (sleep 'x_seconds)
  17.     sleep for x_seconds.
  18.  
  19.   
  20.  
  21.  
  22.