Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Sequence[+A]{
- def append(x: Sequence [A]): Sequence[A]
- }
- // append implementuje ceche Function1, czyli:
- // argumenty kontrawariantne [-A], typ wyniku funkcji kowariantny[+A]
- trait Function1[-S, +T] extends AnyRef{
- abstract def apply(x: S): T
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement