Method: Sequence#subseq

Defined in:
lib/sequence.rb

#subseq(*args) ⇒ Object

make a new sequence out of a subrange of current sequence data. the subseq and parent seq share data, so changes in one will be reflected in the other.



415
416
417
418
419
# File 'lib/sequence.rb', line 415

def subseq(*args)
  assert !closed?
  first,len,only1=_parse_slice_args(*args)
  SubSeq.new(self,first,len)
end