Guest User

Untitled

a guest
May 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. scala> class やる気[T]( theSeq:Seq[T]) extends Seq[T]{
  2. | def apply(i:Int) = theSeq(i)
  3. | def length = theSeq.length
  4. | def iterator = theSeq.iterator
  5. | }
  6. defined class やる気
  7.  
  8. scala> new やる気( List.empty[Nothing] )
  9. res1: やる気[Nothing] = line1()
Add Comment
Please, Sign In to add comment