Reuse seq in some

Description

By using when-let at most two seq constructions can be avoided per invocation of some.

Patch: clj-1654.patch

Screened by: Alex Miller

Environment

None

Activity

Show:
Alex Miller
January 12, 2016, 3:40 PM

Updated patch to include ticket number in commit message, no other changes, attribution retained.

Ghadi Shayban
February 4, 2015, 6:11 PM

This is similar to the tweak to dorun/doall in CLJ-1515. It is a good benefit when a collection doesn't cache its seq

Completed

Assignee

Unassigned

Reporter

Gijs Stuurman

Labels

Approval

Ok

Patch

Code

Fix versions

Priority

Trivial