Meta Project

The Unofficial Meta Documentation

POKE

Summary

POKE Changes the value stored at index value of an ARRAY! type variable

Category

Categoryname

Usage

POKE value1 value2 value3

Arguments

value1 - variable name

value2 - index value of array

value3 - BYTE! value to store at index location

Refinements

This method has no refinements

Description

POKE Changes the BYTE! value stored at index value of an ARRAY! type variable. POKE will be for any item that a series is made up of, just like in REBOL. Currently that is BYTE! for ARRAY BYTE! a.k.a. BINARY!

Example Code

Let [board] binary! 10

For index 10 [
    poke board index 0
]

Related

PICK  
CHANGE  

Back to the Meta Methods Reference index