user266003
user266003

Reputation:

Extending a class from something

What does it mean to write this:

abstract class Parser[+T] extends (Input => ParseResult[T]) { ... }

what does it extend from?

Upvotes: 0

Views: 65

Answers (1)

Jörg W Mittag
Jörg W Mittag

Reputation: 369458

It extends from Input => ParseResult[T], which is syntactic sugar for Function1[Input, ParseResult[T]].

Upvotes: 2

Related Questions