Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

REDUCE/into of non-block doesn't insert into target #2061

Closed
rebolbot opened this issue Sep 18, 2013 · 1 comment
Closed

REDUCE/into of non-block doesn't insert into target #2061

rebolbot opened this issue Sep 18, 2013 · 1 comment

Comments

@rebolbot
Copy link
Collaborator

Submitted by: BrianH

REDUCE/into is supposed to insert its resulting value(s) into the target block specified by the out parameter. However, the /into option is ignored when the value argument isn't a block, and REDUCE just returns value as if /into wasn't specified. REDUCE/into should always insert.

>> head reduce/into "a" []
== "a"  ; should be ["a"]

CC - Data [ Version: r3 master Type: Bug Platform: All Category: Native Reproduce: Always Fixed-in:none ]

@hostilefork
Copy link
Member

hostilefork commented Jun 8, 2018

Had been "resolved" in Ren-C, but there was a bug and no test. Bugfix and a test added:

metaeducation/ren-c@6aab8d2

EDIT: Resolved in Ren-C because it has eliminated the /INTO feature, explanation here

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants