scalaz.example

CABRunLengthEncoder

object CABRunLengthEncoder

Source
ReaderWriterStateTUsage.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CABRunLengthEncoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

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

    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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object RunLengthState extends Serializable

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    have we exhausted the input?

  10. def emit: RunLength[Unit]

    emit the lastToken

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

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  18. def maybeEmit: RunLength[Unit]

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

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

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val readToken: RunLength[Token]

    read a token from the input

  23. val readToken2: RunLength[Token]

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

  24. val rle: MonadReader[[ε$5$]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε$5$], RunLengthConfig] with MonadState[[ε$6$]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε$6$], RunLengthState] with MonadListen[[ε$7$]IndexedReaderWriterStateT[Free.Trampoline, RunLengthConfig, Cord, RunLengthState, RunLengthState, ε$7$], Cord]

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

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

    put output on the writer

Inherited from AnyRef

Inherited from Any

Ungrouped