Pack

case class Pack[E, T](value: T) extends Parsec[E, T]
Companion
object
trait Serializable
trait Product
trait Equals
trait Parsec[E, T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(state: State[E]): Try[T]

pack is the return operation in haskell

pack is the return operation in haskell

Returns

create a parser just return the item

Inherited methods

def !(state: State[E]): T
Inherited from
Parsec
def <|>[R >: T](p: Parsec[E, R]): Parsec[E, R]
Inherited from
Parsec
def ?(state: State[E]): Try[T]
Inherited from
Parsec
def attempt: Parsec[E, T]
Inherited from
Parsec
def iterate[R >: T](state: State[E]): Iterator[E, R]
Inherited from
Parsec
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product