Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scala> class やる気[T]( theSeq:Seq[T]) extends Seq[T]{
- | def apply(i:Int) = theSeq(i)
- | def length = theSeq.length
- | def iterator = theSeq.iterator
- | }
- defined class やる気
- scala> new やる気( List.empty[Nothing] )
- res1: やる気[Nothing] = line1()
Add Comment
Please, Sign In to add comment