Skip to content

Instantly share code, notes, and snippets.

@sellmair
Last active August 6, 2018 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sellmair/df8d8c17a196e3a86e40fb11756a3e69 to your computer and use it in GitHub Desktop.
Save sellmair/df8d8c17a196e3a86e40fb11756a3e69 to your computer and use it in GitHub Desktop.
private class PatternDetectorConnector(
private val first: PatternDetector,
private val second: PatternDetector): PatternDetector {
override fun findPatterns(data: List<Weight>): List<Pattern> {
val firstPatterns = first.findPatterns(data)
val secondPatterns = seconnd.findPatterns(data)
return firstPatterns + secondPatterns
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment