Object

scalaz.example

CABRunLengthEncoder

Related Doc: package example

Permalink

object CABRunLengthEncoder

Source
ReaderWriterStateTUsage.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CABRunLengthEncoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type RunLength[A] = IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, A]

    Permalink
  2. case class RunLengthConfig(minRun: Int) extends Product with Serializable

    Permalink

    the configuration of our encoder, this will be used in the Reader part of our RWST

  3. case class RunLengthState(lastToken: Option[Token], length: Int, input: List[Token]) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object RunLengthState extends Serializable

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def done: RunLength[Boolean]

    Permalink

    have we exhausted the input?

  8. def emit: RunLength[Unit]

    Permalink

    emit the lastToken

  9. def encode(minRun: Int, input: List[Token]): String

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def maybeEmit: RunLength[Unit]

    Permalink

    emit tokens if the next input token is different than the last

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val readToken: RunLength[Token]

    Permalink

    read a token from the input

  21. val readToken2: RunLength[Token]

    Permalink

    with the above syntax imported, we can perform the same computation as above, but use a for comprehension

  22. val rle: MonadReader[[ε]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε], RunLengthConfig] with MonadState[[ε]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε], RunLengthState] with MonadListen[[ε]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε], Cord]

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def writeOutput(token: Token, length: Int, minRun: Int): RunLength[Unit]

    Permalink

    put output on the writer

Inherited from AnyRef

Inherited from Any

Ungrouped