Skip to content

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
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.

4 participants