Topics

Code is DATA/Data is CODE

Series/Blocks

Selecting

Select returns the value next to the matched key. It could search also for types

Simplest Select Syntax is

Select BLOCK/SERIES KEY

Example:


>> select [a b c d] 'b == c

Now, the third one will be a block

Select returns the element

>> a: [a b [1 2 3 4] d] == [a b [1 2 3 4] d]

>> select a 'b == [1 2 3 4]


SELECT is the short form of:

>> probe first next find a 'b [1 2 3 4] == [1 2 3 4]

which could also be written as

>> probe pick next find a 'b 1 == [1 2 3 4]


Finding >> probe next find a 'b [[1 2 3 4] d] == [[1 2 3 4] d]


>> a: [a b [1 2 3 4] d] 'b == b >> probe first next find a 'b [1 2 3 4] == [1 2 3 4] >> select [a b c d] 'b == c >> select a 'b == [1 2 3 4] >> a: [a b "c1234" d] == [a b "c1234" d] >> select a 'b == "c1234" >> find a 'b == [b "c1234" d]


(TODO: Clarify if it copies)

Table


Command Type Purpose Input Output Modify Series Modify Series Index Record Index to Head Index to Current Pos Other
Alter SEARCH-SET
Append MODIFY
At IDX Yes
Back IDX
Change MODIFY Changes series from current position Series to change YES
Clear MODIFY Deletes everything from current position to tail
Collect
Compose
Copy GET Returns a copy of the series
Empty? INFO
Exclude UNIONS Returns first arguments values minus second argument values
Extract GET Get elements. Cold also see block as record of elements
Find SEARCH Returns a series from the mathing position
Head IDX
Head? INFO
Index? INFO
Insert MODIFY Insert a value in the current position shifting the previous value(s) to the right
Last IDX
Length? INFO
Move MODIFY Move element(s) of the series to another
Next IDX
Path!
Path?
Pick GET Takes the N'th value
Poke SET Sets the N th value
Rejoin MODIFY
Remove MODIFY Remove the first value of a series starting from current position
Remove-Each MODIFY Test each value of the block with a contition, if test returns true, remove that value
Replace SEARCH-SET Replace the found value with another one
Reverse MODIFY Reverse all the arguments of a series
Select SEARCH Selects (extract) the item next to the matched one
Skip IDX Move index one or more position forward
Sort MODIFY Sort the series
Swap MODIFY Swap the current elements of two series
Tail IDX
Tail? INFO
Take MODIFY
Take Remove and returns on or more elements of a series
Union Returns the unique elements of two series
Unique REturns the unique elements of a series
First
Second
Third
Fourth
Fifth


Findind

Finding a value in a series/block requires FIND It returns the block positioned at the match or (none?)

To obtain the numeric index/position you should use POS? Example: POS? FIND a 'b


Note the difference in the output between finding and selectin

When exploring RED this could led to a misunderstanding [1 2 3 4] = a block containing 1 2 3 4 1 2 3 4 = a block containing another block which contains 1 2 3 4


[1 2 3 4] the element in the third position, which is a block [[1 2 3 4] d] the original series starting at thrid position which contains the thrird and fourth element

to get again the whole block you shoud

head a (why not a: head a)

Contexts

VID

Databases

RED/Systems

Compiling

PATHS

NONE, TRUE, EMPTY, ETC.

Active words

Natural language

PARSE

DSL

RED Code INIT

EXTERNAL Libraries

CODE MORPHING

Code internal Structure

Datatypes

Articles

Type Description Link
(None)

Forums/Chats Q/A

Tagged for RED in stack overflow [1]

Tagged for REBOL in Stack Overflow [2]

Tagged for REBOL in Stack Overflow [3]

Tagged for REBOL in Stack Overflow [4]


Type Description Link
Find Find locates characters in string when passed string (Stack Overflow)
Data/Code END Separators between istructions (Stack Overflow)
Inner RED: Contexts Context of words in SUB functions, binding (DEEP) (Gitter)
Editors List of Structured Editors from NENAD (NOT RED SPECIFIC) (Gitter)
Copying Series Explanation on copying a series on REBOL, a so called rite of passage (Gitter)
Inner Red Nenad answers to the request to know inner RED structure. Partecipants explain the phrase "there is no spoon" (Gitter)
Inner Red Words, set words, binding (Gitter)
Inner Red: Series Inizializing Series with COPY or without, why it matters. Vladimir answering (Gitter)
Inner RED: Code is Data Contiguos block of data/code concept (Gitter)
Inner RED: Loading Code Startup of RED script, LOADING it, Datatypes and Word Values (Gitter)
Inner REBOL: Copy Article from Carl Sassenrath on Copy and Side effects (Carl BLOG)
Inner RED: Binding Various messages on REDUCING Blocks/Bindings (Gitter)
Documentation Various link/messages on RED workings and Vladimir desire to write a book on RED on Special Topics and internal workings (Gitter)
Inner RED: No Spoon Festival There is no spoon Festival ! (Gitter)
Inner RED: Binding Vladimir Graph on binding (Gitter)
GUI Henrik Mikael Kristensen on Vid Extension Kit and RESIZE (Gitter)
GUI How to Resize a picture (Gitter)
Parse Extracting SQL column names example by Toomas V. (Gitter)
WEB REST API (Gitter)
*Inner RED Words and Ditionary (Gitter)
Inner RED Code is Data (Gitter)
Other Languages Do other Languages have similar Parse ? (Gitter)
Various Contexts and Closures (Gitter)
Apply A cheap Apply (Gitter)
Datatype Discussion on Money! Datatype Vs. Float (Gitter)
Paths Sstoring and Evaluationg Paths (Gitter)
Context Vladimir on Contexts (Gitter)
RED Substitute (Gitter)
Select Does Select Copy ? Answer from Vladirmir (Gitter)
Internet SMTP, HTTP and other requests (Gitter)
Internal Could a Function know its name (Gitter)
Paths Dynamic Paths (Gitter)
GUI Cut, Copy, Paste Text Areas (Gitter)
Paths Dynamic Paths (Gitter)
Bind/Contexts Vladimir on Binding (Gitter)
Functions Double returning value to functions (Gitter)
Objects Creating Objects with unset values (Gitter)
Binding Nenand on Binding (Gitter)
Words/Symbols Nenad on values contaniers (Gitter)
Parse An user request help for parse (Gitter)
GUI Highlight a Text (Gitter)
GUI CR/LF Calculation problem (Gitter)
GUI Example of Extracting text from an area (Gitter)
Reactivity Reactivity (Gitter)
Parse User helped on Parse (Gitter)
Paths More question on paths (Gitter)
GUI On change Handler (Gitter)
Paths Getting word values in paths (Gitter)
Parse How Parse IF work (Gitter)
GUI Autosave on GUI event (Gitter)
Series Subseries of a bigger one (Gitter)
Various Replacing CRFL to LF (Gitter)
RED Do does not evaluate its function argument (Gitter)
Parse Parse Help on sub block (Gitter)
Blocks CR in Blocks (Gitter)
Find Find returning the position after the match (Gitter)
Paths Storing a path i a word and having its parens evalued later (Gitter)
SetWord Explanation on word evaluation (Gitter)
GUI Vid Events (Gitter)
Refinements Having multiple words for a refinement (Gitter)
GUI Cursor and face positioning (Gitter)
GUI Dinamically created GUI (Gitter)
Paths Path evaluation (Gitter)
GUI Cant use path as arguments (Gitter)
LOAD Storing code in a library and retrieving with LOAD and DO (Gitter)
GUI A panel opening over another panel (Gitter)
To-Date To-Date not working 6.3 (Gitter)
GUI Question on Drop List (Gitter)
GUI Rotate and center of pixel (Gitter)
RED No Variables in RED (Gitter)
GUI Vid Field in a variable (Gitter)
Math Rounding (Gitter)
Paths Decoding ad word value retrieving (Gitter)
#Inport Inporting (Gitter)
GUI Keeping buttons pressed (Gitter)
Parse Keep/Collect (Gitter)
Inner RED Symbols, Lexemes (Gitter)
Inner RED Point Datatype (Gitter)
GUI Discussion on various GUI engines (Gitter)
GUI Menu' (Gitter)
Parse Parse is Greedy (Gitter)
RED Operator Precedence (Gitter)
Parse User Parse Problem (Gitter)
RED List of Escaped Keys (Gitter)
Parse User Parse Problem (Gitter)
RED Escaped Chars (Gitter)
GUI list of keys, key-nums and chars as returned in view on-key (Gitter)
RED Bitset conversion problem (Gitter)
GUI Event on DROPDOWN (Gitter)
GUI Cursor Position (Gitter)
GUI Focus on VID (Gitter)
GUI Get Position in Area (Gitter)
RED Gettin RED consolle output (Gitter)
Parse Current Parse Position (Gitter)
GUI Dropdown List (Gitter)
RED Validating a date (Gitter)
LOAD Problem Loading a Date (Gitter)
GUI Scrollers (Not Documented for Dropdown) (Gitter)
Android RED for android at RED version 6.3 (Gitter)
RED Red Console Configuration File (Gitter)
WEB API Sending Telegram Messages with RED (Gitter)
Charsets Traversing a Charset (Gitter)
GUI Removing all windgets from a window (Gitter)
Logic Threatment of Intergers via OR and AND (Gitter)
Parse Parse: User Problem (Gitter)
Various Difference between different Branches of REBOL3 (Stack Overflow)
Various Many Questions from Peter W A Hood (Stack Overflow)
REBOL2 Port Binding to multiple IPs (Stack Overflow)
REBOL2 *Printing data to STDOUT (Howtobuildsoftware)
Various Differences Between REBOL2, REBOL3 and RED (Stack Overflow)
REBOL Objects Rebol Object and encapsulation (Carl's Blogs)
Objects RED Objects implementation (RED Site)
Context Context? returns ?function? and other aspects (Gitter)
Context Context in Foreach (Gitter)
Context Function with Variable number Arguments and atypical Function use (Object Methods like) (LONG!) (Gitter)
Context Why REBOL functions seems to have memory ? (CODE Day)
Context Contexts, Bindings, Dinamyc functions and Dialects. Very long discussion (Gitter)
Context Dynamic Functions (Gitter)
Functions Dynamic Functions Dialect (Gitter)
DSL Simple QUERY Dialect Dialect Example (Gitter)
DSL SENDKEYS for REBOL ported on RED (Gitter)
DLL Autokeys.dll to RED (Gitter)
Lists List Comphrension (CODE Day)
Reflection Words-Of -> Of . Of operator proposal to get elements of a 'type (Gitter)

Scripts/Repositories

Name Type RED/RED System Description Author Link
Mandelbrot FAST Math RED/System Mandelbrot Generator Full Stack Team (GITHUB)
(None)