• 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.28 library(nb_set): Non-backtrackable set
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(nb_set): Non-backtrackable set
          • empty_nb_set/1
          • add_nb_set/2
          • add_nb_set/3
          • gen_nb_set/2
          • size_nb_set/2
          • nb_set_to_list/2
    • Packages
Availability::- use_module(library(nb_set)).(can be autoloaded)
Sourceadd_nb_set(+Key, !Set, ?New)
If Key is not in Set and New is unified to true, Key is added to Set. If Key is in Set, New is unified to false. It can be used for many purposes:

add_nb_set(+, +, false)Test membership
add_nb_set(+, +, true)Succeed only if new member
add_nb_set(+, +, Var)Succeed, binding Var
ClioPatria (version V3.1.1-51-ga0b30a5)