Skip to content

Commit d1028b5

Browse files
authored
Merge pull request #7 from bkamins/add_all_and_between
Add All and Between from IndexedTables.jl
2 parents 085a8d0 + 0df0fda commit d1028b5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/DataAPI.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,22 @@ definition.
7373
"""
7474
function describe end
7575

76+
"""
77+
Between(first, last)
78+
Select the columns between `first` and `last` from a table.
79+
"""
80+
struct Between{T1 <: Union{Int, Symbol}, T2 <: Union{Int, Symbol}}
81+
first::T1
82+
last::T2
83+
end
84+
85+
"""
86+
All(cols...)
87+
Select the union of the selections in `cols`. If `cols == ()`, select all columns.
88+
"""
89+
struct All{T<:Tuple}
90+
cols::T
91+
All(args...) = new{typeof(args)}(args)
92+
end
93+
7694
end # module

0 commit comments

Comments
 (0)