reducers/mapcat ignores Reduced

Description

Problem: clojure.core.reducers/mapcat does not stop on reduced? values.

Demonstration:

Cause: r/mapcat introduces an intermediate reduce which swallows the reduced value coming from r/take.

Patch: lazy-rmapcat2.diff

Environment

None

Attachments

2

Activity

Show:

Stuart Sierra August 2, 2013 at 8:37 PM

Screened.

Stuart Sierra August 2, 2013 at 8:36 PM

Original patch lazy-rmapcat.diff had whitespace errors, which I have fixed in a new patch lazy-rmapcat2.diff. I also added the ticket number to the commit message.

Stuart Sierra August 2, 2013 at 8:31 PM

Cleaned up description.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created February 11, 2013 at 2:38 PM
Updated August 15, 2013 at 12:13 AM
Resolved August 15, 2013 at 12:13 AM