metaeducation / rebol-issues

6 stars 1 forks source link

VECTORS should be extendable. #1326

Open rebolbot opened 14 years ago

rebolbot commented 14 years ago

Submitted by: Steeve

The use of vectors is limited because they can't be extended, like all other series.

INSERT, APPEND not allowed.

CC - Data [ Version: alpha 95 Type: Wish Platform: All Category: Datatype Reproduce: Always Fixed-in:none ]

rebolbot commented 14 years ago

Submitted by: PeterWood

Currently, series? returns true for a vector. The current documentation for insert and append suggests that support all series! types. This appears inconsistent.

>> a: make vector! [integer! 16 [10 20 30 ]] 
== make vector! [integer! 16 3 [
10 20 30
]]
>> series? a                                 
== true
>> ? insert

USAGE:

    INSERT series value /part length /only /dup count

DESCRIPTION:

    Inserts into a series and returns the series after the insert. (Modifies)
    INSERT is an action value.

ARGUMENTS:

    series -- Series at point to insert (series! port! map! gob! object! bitset! port!)
    value -- The value to insert (any-type!)