Constructs new Pane.Page given data and index
Pane.Page
Splits data on the newline and chunks it into Pane.Page structs
t() :: %Pane.Page{data: String.t, index: pos_integer}
new(String.t, pos_integer) :: t
Constructs new Pane.Page given data and index.
iex> Pane.Page.new("test", 1) %Pane.Page{data: "test", index: 1}
paginate(String.t, pos_integer) :: [t]
Splits data on the newline and chunks it into Pane.Page structs.
iex> [p1] = Enum.join(1..4, "\n") |> Pane.Page.paginate iex> p1.index 0 iex> p1.data "1\n2\n3\n4"