Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #78 #79

Merged
merged 1 commit into from
Nov 27, 2014
Merged

fixes #78 #79

merged 1 commit into from
Nov 27, 2014

Conversation

wookietreiber
Copy link
Contributor

Implements and rudimentary tests a solution for #78.

@xuwei-k xuwei-k merged commit a1a6746 into nscala-time:master Nov 27, 2014
@wookietreiber wookietreiber deleted the wip-interval-to-collection branch November 27, 2014 06:15

var x = underlying.getStart

while (x < underlying.getEnd) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using 1 to 3 in Scala, I expect it give me Seq(1, 2, 3), which includes the last value.
Hence I would expect the to here will give me the last value, too.
Would it be better to use while (x <= underlying.getEnd) here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You, are right. I have opened a separate issue for this: #83.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But intervals are more like start until end, instead of start to end.

For interval contains interval.end is false.

And this method will return a collection contains a point which is not in the original interval.
@pishen @wookietreiber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants