SeqReader

org.nlogo.parse.SeqReader
class SeqReader[T](xs: Seq[T], fn: T => Int) extends Reader[T]

Attributes

Source
StructureCombinators.scala
Graph
Supertypes
class Reader[T]
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

case class Pos(pos: Int) extends Position

Attributes

Source
StructureCombinators.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Position
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def atEnd: Boolean

true iff there are no more elements in this reader.

true iff there are no more elements in this reader.

Attributes

Source
StructureCombinators.scala
def first: T

Returns the first element of the reader

Returns the first element of the reader

Attributes

Source
StructureCombinators.scala
def pos: Position

The position of the first element in the reader.

The position of the first element in the reader.

Attributes

Source
StructureCombinators.scala
def rest: Reader[T]

Returns an abstract reader consisting of all elements except the first

Returns an abstract reader consisting of all elements except the first

Attributes

Returns

If atEnd is true, the result will be this; otherwise, it's a Reader containing more elements.

Source
StructureCombinators.scala

Inherited methods

def drop(n: Int): Reader[T]

Returns an abstract reader consisting of all elements except the first n elements.

Returns an abstract reader consisting of all elements except the first n elements.

Attributes

Inherited from:
Reader
Source
Reader.scala
def offset: Int

Attributes

Inherited from:
Reader
Source
Reader.scala
def source: CharSequence

If this is a reader over character sequences, the underlying char sequence. If not, throws a NoSuchMethodError exception.

If this is a reader over character sequences, the underlying char sequence. If not, throws a NoSuchMethodError exception.

Attributes

Throws
[[java.lang.NoSuchMethodError]]

if this not a char sequence reader.

Inherited from:
Reader
Source
Reader.scala