parser_gleam/stream

Types

pub type ItAndNext(a) {
  ItAndNext(value: a, next: Stream(a))
}

Constructors

  • ItAndNext(value: a, next: Stream(a))
pub type Stream(a) {
  Stream(buffer: List(a), cursor: Int)
}

Constructors

  • Stream(buffer: List(a), cursor: Int)

Functions

pub fn at_end(s: Stream(a)) -> Bool
pub fn get(s: Stream(a)) -> Option(a)
pub fn get_and_next(s: Stream(a)) -> Option(ItAndNext(a))
pub fn get_eq(e: Eq(a)) -> Eq(Stream(a))
pub fn stream(buffer: List(a), cursor: Option(Int)) -> Stream(a)
Search Document