A.29 library(option): Option list processing
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(option): Option list processing
          • option/3
          • option/2
          • select_option/3
          • select_option/4
          • merge_options/3
          • meta_options/3
          • dict_options/2
    • Packages
Availability::- use_module(library(option)).(can be autoloaded)
Source[det]merge_options(+New, +Old, -Merged)
Merge two option lists. Merged is a sorted list of options using the canonical format Name(Value) holding all options from New and Old, after removing conflicting options from Old.

Multi-values options (e.g., proxy(Host, Port)) are allowed, where both option-name and arity define the identity of the option.