Meta Project

The Unofficial Meta Documentation

PICK

Summary

PICK retrieves the value stored at certain index of an ARRAY! type variable.

Category

Categoryname

Usage

PICK value1 value2

Arguments

value1 - variable name

value2 - index of the stored variable

Refinements

This method has no refinements

Description

PICK for any item that a series is made up of, just like in REBOL. Only currently that is BYTE! for ARRAY BYTE! a.k.a. BINARY!

Example Code

; Where board is an array as declared
Let [board] binary! 10

; filled and changed board in the meantime

for index 50 [ write pick board index write " "]

Related

POKE  
CHANGE  

Back to the Meta Methods Reference index