Reputation:
What does it mean to write this:
abstract class Parser[+T] extends (Input => ParseResult[T]) { ... }
what does it extend from?
Upvotes: 0
Views: 65
Reputation: 369458
It extends from Input => ParseResult[T]
, which is syntactic sugar for Function1[Input, ParseResult[T]]
.
Upvotes: 2