framework/page

Keyset pagination; transformations preserve the cursor.

Types

pub opaque type Cursor
pub type Page(item) {
  Page(items: List(item), next: option.Option(Cursor))
}

Constructors

Values

pub fn cursor(raw: String) -> Result(Cursor, Nil)
pub fn cursor_to_string(value: Cursor) -> String
pub fn map(page: Page(a), transform: fn(a) -> b) -> Page(b)
Search Document