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

REBOL 3 Functions: next

next  series

Returns the series at its next position.


series [series! gob! port!]

See also:

back   first   head   tail   head?   tail?  


If the series is at its tail, it will remain at its tail. NEXT will not go past the tail, nor will it wrap to the head.

print next "ABCDE"
print next next "ABCDE"
print next [1 2 3 4]
2 3 4
str: "REBOL"
loop length? str [
    print str
    str: next str
blk: [red green blue]
loop length? blk [
    probe blk
    blk: next blk

  TOC < Back Next > - WIP Wiki Feedback Admin