Simple enough? def machineLearning(d: Observable[(S,T)]): Future[Object{ def unSubscribe(): Unit def apply(s: S): Future[T] }]
@headinthebox Scala syntax will let you completely elide the word "Object" from a structural type.
-
-
@propensive Also the structural type can be elided with Either[Unsubscribe, S] => Either[Unit, Future[T]] :-p /cc@headinthebox -
@viktorklang@propensive Doesn't that type include Unsubscribe => Future[T] as one possibility? - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.