Skip to content

Commit 659c6a8

Browse files
committed
Add All and Between from IndexedTables.jl
1 parent 085a8d0 commit 659c6a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/DataAPI.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,23 @@ 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}
90+
cols::T
91+
end
92+
93+
All(args...) = All(args)
94+
7695
end # module

0 commit comments

Comments
 (0)