Skip to content

Instantly share code, notes, and snippets.

@andyczerwonka
Created October 3, 2017 19:39
Show Gist options
  • Save andyczerwonka/f8b1b4e5bbb53de8de73a575eb31c902 to your computer and use it in GitHub Desktop.
Save andyczerwonka/f8b1b4e5bbb53de8de73a575eb31c902 to your computer and use it in GitHub Desktop.
val entries = readings collect {
case r if sensorNames.contains(r.sensor) => (str2date(r.date), sensorNames(r.sensor), r.metric)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment