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_set_dict(+Key, !Dict, +Value)
Destructively update the value associated with Key in Dict to a copy of 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_setarg/3 and nb_setval/2.