Skip to content

Commit

Permalink
added support for collection names to select, reject and partition
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrannell1 committed Jun 29, 2014
1 parent 81ba700 commit d87bfe8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -3,7 +3,9 @@ Kiwi 0.29.0
-----------------------------------------------------------------------------
Date: 2014-6-

Enhancements:

* xSelect, xPartition & xReject now preserve collection names.

Bug-Fixes:

Expand Down
2 changes: 1 addition & 1 deletion R/xPartition.R
Expand Up @@ -53,7 +53,7 @@ xPartition <- MakeFun('xPartition', function (pred, coll) {

isTRUE(is_match)

}, logical(1), USE.NAMES = False)
}, logical(1))

true_ind <- !elem_is_na(ind) & ind

Expand Down
2 changes: 1 addition & 1 deletion R/xReject.R
Expand Up @@ -57,7 +57,7 @@ xReject <- MakeFun('xReject', function (pred, coll) {

isTRUE(is_match)

}, logical(1), USE.NAMES = False)
}, logical(1))

as.list( coll[elem_is_na(ind) | !ind ] )
}
Expand Down
2 changes: 1 addition & 1 deletion R/xSelect.R
Expand Up @@ -57,7 +57,7 @@ xSelect <- MakeFun('xSelect', function (pred, coll) {

isTRUE(is_match)

}, logical(1), USE.NAMES = False)
}, logical(1))

as.list( coll[ !elem_is_na(ind) & ind ] )
}
Expand Down

0 comments on commit d87bfe8

Please sign in to comment.