• 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/terms.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl -- Apply predicates on a list
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl -- Resource bounded thread management
      • gensym.pl
      • settings.pl -- Setting management
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl -- Manage operators
      • pairs.pl
      • prolog_source.pl
      • quasi_quotations.pl
      • url.pl
      • www_browser.pl -- Open a URL in the users browser
      • prolog_colour.pl
      • record.pl
      • prolog_xref.pl
      • occurs.pl
      • ordsets.pl -- Ordered set manipulation
      • assoc.pl -- Binary associations
      • ugraphs.pl
      • solution_sequences.pl
      • atom.pl
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl
      • ctypes.pl
      • utf8.pl
      • base64.pl -- Base64 encoding and decoding
      • persistency.pl
      • pure_input.pl
      • nb_set.pl
      • aggregate.pl
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • iostream.pl -- Utilities to deal with streams
      • dialect.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • yall.pl -- Lambda expressions
      • prolog_code.pl -- Utilities for reasoning about code
      • 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 -- Analyse format specifications
      • random.pl
      • pprint.pl
      • modules.pl -- Module utility predicates
      • lazy_lists.pl -- Lazy list handling
      • 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 -- Term manipulation
        • term_size/2
        • variant/2
        • subsumes_chk/2
        • subsumes/2
        • term_subsumer/3
        • mapargs/3
        • mapsubterms/3
        • mapsubterms_var/3
        • foldsubterms/4
        • foldsubterms/5
        • same_functor/2
        • same_functor/3
        • same_functor/4
      • threadutil.pl -- Interactive thread utilities
      • varnumbers.pl -- Utilities for numbered terms
      • ansi_term.pl
      • zip.pl -- Access resource ZIP archives
      • tableutil.pl -- Table inspection and statistics utilities
      • charsio.pl
      • prolog_trace.pl -- Print access to predicates
      • 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
      • help.pl -- Text based manual
      • wfs.pl
      • qsave.pl
      • tables.pl
      • increval.pl
      • base32.pl
      • codesio.pl
      • sort.pl
      • when.pl
      • prolog_autoload.pl
      • prolog_history.pl
      • streams.pl -- Manage Prolog streams
      • tty.pl
      • portray_text.pl -- Portray text
      • prolog_metainference.pl
      • prolog_wrap.pl -- Wrapping predicates
      • prolog_qlfmake.pl -- Compile the library to QLF format
      • explain.pl
 same_functor(?Term1, ?Term2) is semidet
 same_functor(?Term1, ?Term2, -Arity) is semidet
 same_functor(?Term1, ?Term2, ?Name, ?Arity) is semidet
True when Term1 and Term2 are terms that have the same functor (Name/Arity). The arguments must be sufficiently instantiated, which means either Term1 or Term2 must be bound or both Name and Arity must be bound.

If Arity is 0, Term1 and Term2 are unified with Name for compatibility.

Compatibility
- SICStus
ClioPatria (version V3.1.1-59-g7b9a7a3)