class Sequence::Indexed

This class makes a seq over an Array or String.

Public Class Methods

_orig_new(data,p=0)
Alias for: new
new(data,p=0) click to toggle source
# File lib/sequence/indexed.rb, line 17
def new(data,p=0)
  if data.respond_to? :to_sequence
    data.to_sequence
  else _orig_new(data,p)
  end
end
Also aliased as: _orig_new
new(data,pos=0) click to toggle source
# File lib/sequence/indexed.rb, line 25
def initialize(data,pos=0)
    @data = data
    @pos = pos
end