-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from davidanthoff/julia-0.7
julia 0.7
- Loading branch information
Showing
8 changed files
with
67 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ os: | |
- linux | ||
- osx | ||
julia: | ||
- 0.6 | ||
- 0.7 | ||
- nightly | ||
notifications: | ||
email: false | ||
git: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
julia 0.6 | ||
NamedTuples 4.0.0 | ||
DataValues 0.0.1 | ||
TableTraits 0.0.1 | ||
julia 0.7- | ||
DataValues 0.4.1 | ||
TableTraits 0.3.0 | ||
IteratorInterfaceExtensions 0.1.0 | ||
Missings 0.2.10 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
using NamedTuples | ||
|
||
struct TestSourceWithoutLength | ||
end | ||
|
||
function Base.eltype(iter::TestSourceWithoutLength) | ||
return @NT(a::Int, b::Float64) | ||
return NamedTuple{(:a, :b), Tuple{Int, Float64}} | ||
end | ||
|
||
Base.iteratorsize(::Type{T}) where {T <: TestSourceWithoutLength} = Base.SizeUnknown() | ||
|
||
function Base.start(iter::TestSourceWithoutLength) | ||
return 1 | ||
end | ||
Base.IteratorSize(::Type{T}) where {T <: TestSourceWithoutLength} = Base.SizeUnknown() | ||
|
||
function Base.next(iter::TestSourceWithoutLength, state) | ||
function Base.iterate(iter::TestSourceWithoutLength, state=1) | ||
if state==1 | ||
return @NT(a=1, b=1.), 2 | ||
return (a=1, b=1.), 2 | ||
elseif state==2 | ||
return @NT(a=2, b=2.), 3 | ||
return (a=2, b=2.), 3 | ||
else | ||
return nothing | ||
end | ||
end | ||
|
||
function Base.done(iter::TestSourceWithoutLength, state) | ||
return state>2 | ||
end |