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

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl
      • lists.pl -- List Manipulation
        • member/2
        • append/3
        • append/2
        • prefix/2
        • select/3
        • selectchk/3
        • select/4
        • selectchk/4
        • nextto/3
        • delete/3
        • nth0/3
        • nth1/3
        • nth0/4
        • nth1/4
        • last/2
        • proper_length/2
        • same_length/2
        • reverse/2
        • permutation/2
        • flatten/2
        • clumped/2
        • subseq/3
        • max_member/2
        • min_member/2
        • max_member/3
        • min_member/3
        • sum_list/2
        • max_list/2
        • min_list/2
        • numlist/3
        • is_set/1
        • list_to_set/2
        • intersection/3
        • union/3
        • subset/2
        • subtract/3
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl -- Generate unique symbols
      • 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
      • prolog_colour.pl
      • record.pl -- Access compound arguments by name
      • prolog_xref.pl
      • occurs.pl
      • ordsets.pl
      • assoc.pl
      • ugraphs.pl
      • solution_sequences.pl
      • atom.pl
      • prolog_pack.pl
      • git.pl
      • ctypes.pl
      • utf8.pl
      • base64.pl -- Base64 encoding and decoding
      • 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
      • dif.pl -- The dif/2 constraint
      • thread.pl -- High level thread primitives
      • predicate_options.pl
      • rbtrees.pl
      • nb_rbtrees.pl
      • sandbox.pl -- Sandboxed Prolog code
      • prolog_format.pl -- Analyse format specifications
      • random.pl
      • pprint.pl -- Pretty Print Prolog terms
      • modules.pl
      • lazy_lists.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • dicts.pl
      • backcomp.pl
      • oset.pl
      • date.pl
      • prolog_profile.pl
      • listing.pl
      • quintus.pl -- Quintus compatibility
      • statistics.pl -- Get information about resource usage
      • prolog_jiti.pl
      • macros.pl
      • terms.pl
      • prolog_trace.pl
      • increval.pl -- Incremental dynamic predicate modification
      • tables.pl
      • prolog_coverage.pl
      • tty.pl
      • heaps.pl
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • zip.pl
      • edit.pl
      • prolog_debug.pl
      • strings.pl
      • codesio.pl
      • writef.pl
      • shell.pl -- Elementary shell commands
      • prolog_stack.pl -- Examine the Prolog stack
      • optparse.pl
      • charsio.pl
      • threadutil.pl -- Interactive thread utilities
      • sort.pl
      • prolog_history.pl
      • prolog_config.pl
      • prolog_wrap.pl
      • when.pl
      • streams.pl
      • wfs.pl
      • system.pl -- System utilities
      • coinduction.pl
      • check.pl
      • base32.pl
      • varnumbers.pl
      • hashtable.pl
 max_member(:Pred, -Max, +List) is semidet
True when Max is the largest member according to Pred, which must be a 2-argument callable that behaves like (@=<)/2. Fails if List is empty. The following call is equivalent to max_member/2:
?- max_member(@=<, X, [6,1,8,4]).
X = 8.
See also
- max_list/2 for the maximum of a list of numbers.
ClioPatria (version V3.1.1-59-g7b9a7a3)