A.4.2 Creating association lists
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(assoc): Association lists
          • Creating association lists
            • empty_assoc/1
            • list_to_assoc/2
            • ord_list_to_assoc/2
    • Packages
Availability::- use_module(library(assoc)).(can be autoloaded)
Source[det]ord_list_to_assoc(+Pairs, -Assoc)
Assoc is created from an ordered list Pairs of Key-Value pairs. The pairs must occur in strictly ascending order of their keys.
Errors
domain_error(key_ordered_pairs, List) if pairs are not ordered.