home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / remw < prev    next >
Encoding:
Text File  |  2002-10-28  |  661 b   |  24 lines

  1. Synopsis:
  2.    $remw(<word> <word list>)
  3.  
  4. Technical:
  5.    This function returns the input list with the first occurrence of the
  6.    given word removed.
  7.  
  8. Practical:
  9.    This function is probably most useful in text parsing within a script.
  10.    Because it only removes the first occurrence of the given word, and not
  11.    all of them, it should probably be used in conjunction with $uniq() to
  12.    be truly effective.
  13.  
  14. Returns:
  15.    input list with first occurrence of given word removed
  16.  
  17. Examples:
  18.    $remw(two one two three)            returns "one three"
  19.    $remw(two one two three two one)    returns "one three two one"
  20.  
  21. See Also:
  22.    remws(6); uniq(6)
  23.  
  24.