Skip to content

Commit 1b6c589

Browse files
authored
Extend Cols API (#42)
1 parent 92b0def commit 1b6c589

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DataAPI"
22
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
33
authors = ["quinnj <[email protected]>"]
4-
version = "1.8.0"
4+
version = "1.9.0"
55

66
[compat]
77
julia = "1"

src/DataAPI.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,12 @@ end
161161

162162
"""
163163
Cols(cols...)
164+
Cols(f::Function)
164165
165166
Select the union of the selections in `cols`. If `cols == ()`, select no columns.
167+
168+
If the only positional argument is a `Function` `f` then select the columns whose
169+
names passed to the `f` predicate as strings return `true`.
166170
"""
167171
struct Cols{T<:Tuple}
168172
cols::T

0 commit comments

Comments
 (0)