kaishi.core.printing
¶
Definitions for print helper utilities.
Module Contents¶
-
kaishi.core.printing.
should_print_row
(i: int, max_entries: int, num_entries: int)¶ Make decision to print row or not based on max_rows.
- Parameters
i (int) – index of row
max_entries (int) – max number of entries for the table
num_entries (int) – number of possible entries (the full list)
- Returns
0 if should not print, 1 if should print, 2 if should print ellipsis (“…”)
- Return type
int