Did you know ... | Search Documentation: |
![]() | Pack onepointfour_basics -- prolog/dict_pp/helpers.pl |
This module collects a few very simple and very specialized helper predicates dealing with strings in the context of dict prettyprinting, which just add noise to the main module. So they are here, in a separate module.
The homepage for this module is at
https://github.com/dtonhofer/prolog_code/blob/main/unpacked/onepointfour_basics/README_dict_pp.md
Entries contains the transformed pairs in the order in which they appear in Pairs.
Each element in Entries (an "entry") is a pair KeyString-Lineified
where:
KeyString
is a string generated from the dict key (which is always
an atom or an integer) The caller will want to justify this string when
creating the final line of text.Lineified
is a compound term that is one of:
mono(String)
: String
is a single string generated by formatting
the value; it can be printed "as is" after left/right/center
justification.poly(List)
: List
is a list of string generated by formatting a
subdict; all the strings in List
must be integrated into the lines
generated for the current dict.false
.