5.4.2.1 Destructive assignment in dicts
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • SWI-Prolog extensions
        • Dicts: structures with named arguments
          • Predicates for managing dicts
            • Destructive assignment in dicts
              • b_set_dict/3
              • nb_set_dict/3
              • nb_link_dict/3
    • Packages
Availability:built-in
[det]nb_link_dict(+Key, !Dict, +Value)
Destructively update the value associated with Key in Dict to Value. The update is not undone on backtracking. This predicate raises an existence error if Key does not appear in Dict. The update semantics are equivalent to nb_linkarg/3 and nb_linkval/2. Use with extreme care and consult the documentation of nb_linkval/2 before use.