Skip to content

AI~ (Array/Initial) doesn't work with functions #3

@rgchris

Description

@rgchris

Supplying ARRAY/INITIAL in Rebol with a function value initiates each element of the array with the product of a fresh invocation of the function. This doesn't happen in Rebmu. Rebol 3:

>> n: 1 array/initial 4 does [++ n]
== [1 2 3 4]

And in Rebmu:

>> rebmu/debug [I&[a+Jn]Aai~4 i] 
Executing: [i: & [a+ j n] a: ai~ 4 i]
== [1 1 1 1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions