Skip to content

Conversation

@HantingZ
Copy link

No description provided.

@HantingZ HantingZ self-assigned this Jan 21, 2018
@HantingZ HantingZ requested a review from shadaj January 21, 2018 03:26
object CoreRobot {
implicit class ToTimeSeriesNumeric[T](val stream: Stream[T]) extends AnyVal {
def toTimeSeriesNumeric(name: String)(implicit ev: T => Double): TimeSeriesNumeric = {
def toTimeSeriesNumeric(name: String)(whatUnits: String)(implicit ev: T => Double): TimeSeriesNumeric = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think whatUnits would be better suited as just another parameter instead of being curried, since it's just another configuration value.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants