• 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

/usr/lib/swipl/library/prolog_code.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • quasi_quotations.pl
      • url.pl
      • www_browser.pl
      • prolog_colour.pl
      • record.pl
      • prolog_xref.pl
      • occurs.pl
      • ordsets.pl
      • assoc.pl -- Binary associations
      • ugraphs.pl
      • solution_sequences.pl
      • atom.pl
      • prolog_pack.pl
      • git.pl
      • ctypes.pl
      • utf8.pl
      • base64.pl
      • persistency.pl
      • pure_input.pl
      • nb_set.pl
      • aggregate.pl
      • csv.pl
      • iostream.pl -- Utilities to deal with streams
      • dialect.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • yall.pl
      • prolog_code.pl -- Utilities for reasoning about code
        • comma_list/2
        • semicolon_list/2
        • mkconj/3
        • mkdisj/3
        • is_predicate_indicator/1
        • pi_head/2
        • head_name_arity/3
        • most_general_goal/2
        • extend_goal/3
        • predicate_label/2
        • predicate_sort_key/2
        • is_control_goal/1
        • body_term_calls/2
      • dif.pl -- The dif/2 constraint
      • thread.pl -- High level thread primitives
      • predicate_options.pl
      • rbtrees.pl -- Red black trees
      • nb_rbtrees.pl
      • sandbox.pl
      • prolog_format.pl
      • random.pl
      • pprint.pl
      • modules.pl
      • lazy_lists.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • dicts.pl
      • backcomp.pl
      • date.pl
      • oset.pl
      • prolog_profile.pl
      • listing.pl
      • quintus.pl
      • optparse.pl
      • prolog_jiti.pl
      • make.pl
      • terms.pl
      • threadutil.pl -- Interactive thread utilities
      • varnumbers.pl
      • ansi_term.pl
      • zip.pl -- Access resource ZIP archives
      • tableutil.pl -- Table inspection and statistics utilities
      • charsio.pl
      • prolog_trace.pl
      • shell.pl
      • hashtable.pl
      • prolog_stack.pl
      • strings.pl
      • heaps.pl
      • prolog_coverage.pl
      • system.pl
      • writef.pl
      • prolog_versions.pl
      • prolog_codewalk.pl
      • prolog_debug.pl -- User level debugging tools
      • statistics.pl
      • macros.pl
      • files.pl
      • coinduction.pl
      • edit.pl
      • check.pl
      • intercept.pl
      • prolog_config.pl
 comma_list(?CommaList, ?List)
 semicolon_list(?SemicolonList, ?List)
True if CommaList is a nested term over the ','/2 (';'/2) functor and List is a list expressing the elements of the conjunction. The predicate is deterministic if at least CommaList or List is sufficiently instantiated. If both are partial structures it enumerates ever growing conjunctions and lists. CommaList may be left or right associative on input. When generated, the CommaList is always right associative.

This predicate is typically used to reason about Prolog conjunctions (disjunctions) as many operations are easier on lists than on binary trees over some operator.

ClioPatria (version V3.1.1-59-g7b9a7a3)