REBOL Document

Poke - Function Summary


Summary:

Returns value after changing its data at the given index. (See manual)

Usage:

poke value index data

Arguments:

value - The value argument. (must be: series money date time object port tuple)

index - The index argument. (must be: number logic pair)

data - new value

Description:

Similar to CHANGE, but also takes an index into the series.


    str: "AXB"
    poke str 2 #"/"
    print str
    A/B


    print poke 1.2.3.4 2 10
    1.10.3.4

Related:

change - Changes a value in a series and returns the series after the change.
pick - Returns the value at the specified position in a series.


<Back | Index | Next>

Copyright 2004 REBOL Technologies