lazy-cat can cause StackOverflowError with more than 2 arguments

Description

The vararg version of concat doesn't currently short-circuit the last seq. This makes it a little different than the 2-arg version, specifically for lazy-cat and long sequences. Here's an example:

Running this code as is correctly produces 0. Uncommenting the #_[], produces a StackOverflowError.

I attached a simple fix.

Environment

None

Attachments

1

Activity

Show:

Details

Assignee

Reporter

Approval

Triaged

Priority

Created July 5, 2019 at 9:06 PM
Updated July 5, 2019 at 9:12 PM