• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

A.15 library(dicts): Dict utilities
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(dicts): Dict utilities
          • mapdict/2
          • mapdict/3
          • mapdict/4
          • dicts_same_tag/2
          • dict_size/2
          • dict_keys/2
          • dicts_same_keys/2
          • dicts_to_same_keys/3
          • dict_fill/4
          • dicts_join/3
          • dicts_join/4
          • dicts_slice/3
          • dicts_to_compounds/4
    • Packages
Availability::- use_module(library(dicts)).(can be autoloaded)
Sourcemapdict(:Goal, +Dict)
mapdict(:Goal, ?Dict, ?Dict2)
mapdict(:Goal, ?Dict, ?Dict2, ?Dict3)
True when all dicts have the same set of keys and call(Goal, Key, V1, ...) is true for all keys in the dicts. At least one of the dicts must be instantiated.
Errors
- instantiation_error if no dict is bound
- type_error(dict, Culprit) if one of the dict arguments is not a dict.
- domain_error(incompatible_dict, Culprit) if Culprit does not have the same keys as one of the other dicts.
ClioPatria (version V3.1.1-51-ga0b30a5)