-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
combine
to not return lazy sequences
The `combine` function attempts to add new values to a collection by merging them. However, for lists and a vectors, a lazy sequence is returned rather than a list or a vector. For lists, `(apply list (concat ...` is used instead of `(into ...` in order to preserve element order for backwards compatibility, as `into` would put the new elements at the head of the list. For vectors, `into` is used, as new elements are added to the tail. The implementation for sets is simplified.
- Loading branch information
1 parent
5382a89
commit 576f64a
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters