REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: clear

clear  series

Removes all values. For series, removes from current index to tail and returns tail. (Modifies)


series [series! port! map! gob! bitset! none!]

See also:

remove   append   change   insert   sort  


clear is similar to remove but removes through the end of the series rather than just a single value. It returns at the current index position in the series.

str: copy "with all things considered"
clear skip str 8
print str
with all
str: copy "get there quickly"
clear find str "qui"
print str
get there
head clear find %file.txt %.txt

  TOC < Back Next > - WIP Wiki Feedback Admin