ElixirLokaliseApi.CursorPagination (ElixirLokaliseApi v4.2.0)

View Source

Provides helper functions for cursor-paginated collections.

Summary

Functions

Checks whether more items are available.

Checks whether the current collection is the last one.

Returns the next cursor or nil when no more items are available.

Checks whether another cursor is available.

Functions

has_more?(collection)

Checks whether more items are available.

last_page?(collection)

Checks whether the current collection is the last one.

next_cursor(collection)

Returns the next cursor or nil when no more items are available.

next_cursor?(collection)

Checks whether another cursor is available.