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

REBOL 3 Functions: back

back  series

Returns the series at its previous position.

Arguments:

series [series! gob! port!]

See also:

next   last   head   tail   head?   tail?  

Description

Works on any type of series. If the series is at its head, it will remain at its head. back will not go past the head, nor will it wrap to the tail.

print back tail "abcd"
d
str: tail "time"
until [
    str: back str
    print str
    head? str
]
e
me
ime
time
blk: tail [1 2 3 4]
until [
    blk: back blk
    print first blk
    head? blk
]
4
3
2
1


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin